src/Util/Validator.php
public function hasValidator(string $name): bool
    {
        $rules = $this->getRules();

        return \method_exists($this, 'validate' . \ucfirst($name)) || isset($rules[$name]);
    }
public function hasValidator(string $name): bool
    {
        $rules = $this->getRules();

        return \method_exists($this, 'validate' . \ucfirst($name)) || isset($rules[$name]);
    }
public function hasValidator ( string $ name ) : bool { $ rules = $ this -> getRules ( ) ; return \ method_exists ( $ this , 'validate' . \ ucfirst ( $ name ) ) || isset ( $ rules [ $ name ] ) ; }
Returns true if either a validator with the given name has been
registered or there is a default validator by that name.

@param string $name

@return bool
Returns true if either a validator with the given name has been registered or there is a default validator by that name .