code: function checkGroup(query, group) {
      if (group instanceof Array) {
        // check each condition from group
        for ( var c in group) {
          check(query, group[c]);
        }
      }
    }
docs: case of and/or block