code: protected function isValidOption($varInput)
  	{
  		if (!\is_array($varInput))
  		{
  			$varInput = array($varInput);
  		}
  
  		// Check each option
  		foreach ($varInput as $strInput)
  		{
  			$blnFound = false;
  
  			foreach ($this->arrOptions as $v)
  			{
  				// Single dimensional array
  				if (\array_key_exists('value', $v))
  				{
  					if ($strInput == $v['value'])
  					{
  						$blnFound = true;
  					}
  				}
  				// Multi-dimensional array
  				else
  				{
  					foreach ($v as $vv)
  					{
  						if ($strInput == $vv['value'])
  						{
  							$blnFound = true;
  						}
  					}
  				}
  			}
  
  			if (!$blnFound)
  			{
  				return false;
  			}
  		}
  
  		return true;
  	}
docs: Check whether an input is one of the given options
  
  @param mixed $varInput The input string or array
  
  @return boolean True if the selected option exists