original_string: protected function _hasSession()
      {
          return !ini_get('session.use_cookies')
              || isset($_COOKIE[session_name()])
              || $this->_isCLI
              || (ini_get('session.use_trans_sid') && isset($_GET[session_name()]));
      }
code: protected function _hasSession()
      {
          return !ini_get('session.use_cookies')
              || isset($_COOKIE[session_name()])
              || $this->_isCLI
              || (ini_get('session.use_trans_sid') && isset($_GET[session_name()]));
      }
code_tokens: protected function _hasSession ( ) { return ! ini_get ( 'session.use_cookies' ) || isset ( $ _COOKIE [ session_name ( ) ] ) || $ this -> _isCLI || ( ini_get ( 'session.use_trans_sid' ) && isset ( $ _GET [ session_name ( ) ] ) ) ; }
docstring: Returns whether a session exists
  
  @return bool
docstring_tokens: Returns whether a session exists