code: function getInfo(conn){
    var params = pathParams.extractParams(conn.url);
    // Look for 'n' (new) or 'o' (open) path param.
    if (params.n) {
      return {id: params.n, existing: false};
    } else if (params.o) {
      return {id: params.o, existing: true};
    } else {
      return false;
    }
  }
docs: If not a robust URL (missing 'n' or 'o' path param), returns falsy.