public static function have($validator) { $methods = get_class_methods(__CLASS__); return in_array($validator, $methods); }