public function has($name):bool
    {
        return ((isset($this->session[$name]) && null != $this->session[$name])? true : false);
    }
public function has($name):bool
    {
        return ((isset($this->session[$name]) && null != $this->session[$name])? true : false);
    }
public function has ( $ name ) : bool { return ( ( isset ( $ this -> session [ $ name ] ) && null != $ this -> session [ $ name ] ) ? true : false ) ; }
Check if a session key exist
@param string $name The session key
@return bool If exist or not
Check if a session key exist