code: public static boolean containsOption(final List<?> options, final Object findOption) {
  		if (options != null) {
  			for (Object option : options) {
  				if (option instanceof OptionGroup) {
  					List<?> groupOptions = ((OptionGroup) option).getOptions();
  					if (groupOptions != null) {
  						for (Object nestedOption : groupOptions) {
  							if (Util.equals(nestedOption, findOption)) {
  								return true;
  							}
  						}
  					}
  				} else if (Util.equals(option, findOption)) {
  					return true;
  				}
  			}
  		}
  		return false;
  	}
docs: Iterate through the options to determine if an option exists.
  
  @param options the list of options
  @param findOption the option to search for
  @return true if the list of options contains the option