original_string: public function isLoggedIn()
      {
          if (!$this->hasFakeFrontEnd()) {
              throw new Exception('Please create a front end before calling isLoggedIn.', 1334439494);
          }
  
          return isset($GLOBALS['TSFE']) && is_object($GLOBALS['TSFE'])
              && is_array($GLOBALS['TSFE']->fe_user->user);
      }
code: public function isLoggedIn()
      {
          if (!$this->hasFakeFrontEnd()) {
              throw new Exception('Please create a front end before calling isLoggedIn.', 1334439494);
          }
  
          return isset($GLOBALS['TSFE']) && is_object($GLOBALS['TSFE'])
              && is_array($GLOBALS['TSFE']->fe_user->user);
      }
code_tokens: public function isLoggedIn ( ) { if ( ! $ this -> hasFakeFrontEnd ( ) ) { throw new Exception ( 'Please create a front end before calling isLoggedIn.' , 1334439494 ) ; } return isset ( $ GLOBALS [ 'TSFE' ] ) && is_object ( $ GLOBALS [ 'TSFE' ] ) && is_array ( $ GLOBALS [ 'TSFE' ] -> fe_user -> user ) ; }
docstring: Checks whether a FE user is logged in.
  
  @throws Exception if no front end has been created
  
  @return bool TRUE if a FE user is logged in, FALSE otherwise
docstring_tokens: Checks whether a FE user is logged in .