public function hasError($field)
    {
        return isset($this->errors[$field]) && count($this->errors[$field]);
    }
public function hasError($field)
    {
        return isset($this->errors[$field]) && count($this->errors[$field]);
    }
public function hasError ( $ field ) { return isset ( $ this -> errors [ $ field ] ) && count ( $ this -> errors [ $ field ] ) ; }
Check if a specific field has reported errors.

@param  string $field
@return bool
Check if a specific field has reported errors .