public function hasValidator($name)
    {
        $method = 'validation' . ucfirst($name);
        if ($this->validationMethodExists($method)) {
            return true;
        }

        return isset($this->_validators[$name]);
    }
public function hasValidator($name)
    {
        $method = 'validation' . ucfirst($name);
        if ($this->validationMethodExists($method)) {
            return true;
        }

        return isset($this->_validators[$name]);
    }
public function hasValidator ( $ name ) { $ method = 'validation' . ucfirst ( $ name ) ; if ( $ this -> validationMethodExists ( $ method ) ) { return true ; } return isset ( $ this -> _validators [ $ name ] ) ; }
Checks whether or not a validator has been set.

@param string $name The name of a validator.
@return bool
Checks whether or not a validator has been set .