code: public static boolean containsOptionWithMatching(final List<?> options, final Object data) {
  		if (options != null) {
  			for (Object option : options) {
  				if (option instanceof OptionGroup) {
  					List<?> groupOptions = ((OptionGroup) option).getOptions();
  					if (groupOptions != null) {
  						for (Object nestedOption : groupOptions) {
  							if (isEqualWithMatching(nestedOption, data)) {
  								return true;
  							}
  						}
  					}
  				} else if (isEqualWithMatching(option, data)) {
  					return true;
  				}
  			}
  		}
  		return false;
  	}
docs: Iterate through the options to determine if an option exists allowing for Option/Code and Legacy matching.
  
  @param options the list of options
  @param data the test data value
  @return true if the list of options contains the option