condenseToTwo = function (value, allowed) {
  if (allowed.indexOf(2) !== -1 && value.length > 2) {
    if ((value[0] === value[2] && value[1] === value[3]) || (value[0] === value[2] && !value[3] && value[0] !== value[1])) {
      return true;
    }
  }
  return false;
}
Checks to see if a series of values can be condensed down to two values

@param {array} value - The array of values to check
@param {array} allowed - The parser options to specify the levels allowed to condense to
@returns {boolean} Whether the values can be condensed to two values