public static function valueIsValid($value) { return $value === null || in_array($value, self::getValidValues(), true); }