src/FlashMessage.php
public function hasMessages($type)
    {
        return isset($_SESSION[$alias = $this->alias][$type]) && count($_SESSION[$alias][$type]) > 0;
    }
public function hasMessages($type)
    {
        return isset($_SESSION[$alias = $this->alias][$type]) && count($_SESSION[$alias][$type]) > 0;
    }
public function hasMessages ( $ type ) { return isset ( $ _SESSION [ $ alias = $ this -> alias ] [ $ type ] ) && count ( $ _SESSION [ $ alias ] [ $ type ] ) > 0 ; }
Indicate whether there is messages stored on the given type

@param  string $type
@return bool
Indicate whether there is messages stored on the given type