src/Web/Result.php
public function hasMessages()
    {
        return !empty($this->notices) || !empty($this->warnings) || !empty($this->errors) || !empty($this->exception);
    }
public function hasMessages()
    {
        return !empty($this->notices) || !empty($this->warnings) || !empty($this->errors) || !empty($this->exception);
    }
public function hasMessages ( ) { return ! empty ( $ this -> notices ) || ! empty ( $ this -> warnings ) || ! empty ( $ this -> errors ) || ! empty ( $ this -> exception ) ; }
Returns whether the result contains a warning, error or exception.

@return bool
True if the result contains at least 1 warning, error or exception,
false otherwise.
Returns whether the result contains a warning error or exception .