src/Traits/ErrorMessageTrait.php
public function inError(string $field): bool
    {
        foreach ($this->_errors as $item) {
            if ($field === $item['name']) {
                return true;
            }
        }
        return false;
    }
public function inError(string $field): bool
    {
        foreach ($this->_errors as $item) {
            if ($field === $item['name']) {
                return true;
            }
        }
        return false;
    }
public function inError ( string $ field ) : bool { foreach ( $ this -> _errors as $ item ) { if ( $ field === $ item [ 'name' ] ) { return true ; } } return false ; }
check field whether in the errors
@param string $field
@return bool
check field whether in the errors