src/Database/SkeModel.php
protected function validateOption($mValue, array $aOptions = null)
    {
        return is_null($mValue) || is_null($aOptions)
            || array_key_exists($mValue, $aOptions);
    }
protected function validateOption($mValue, array $aOptions = null)
    {
        return is_null($mValue) || is_null($aOptions)
            || array_key_exists($mValue, $aOptions);
    }
protected function validateOption ( $ mValue , array $ aOptions = null ) { return is_null ( $ mValue ) || is_null ( $ aOptions ) || array_key_exists ( $ mValue , $ aOptions ) ; }
Check if value is a valid option.

If either value or options is null, return true (no validation rules).

@param int|string $mValue The value in question.
@param array $aOptions The list of valid options.
@return bool
Check if value is a valid option .