original_string: public function isLoggedIn()
      {
          $session = $this->Controller->request->session();
          if ($session->check('Auth.CakeAdmin')) {
              return (bool)$session->read('Auth.CakeAdmin');
          }
          return false;
      }
code: public function isLoggedIn()
      {
          $session = $this->Controller->request->session();
          if ($session->check('Auth.CakeAdmin')) {
              return (bool)$session->read('Auth.CakeAdmin');
          }
          return false;
      }
code_tokens: public function isLoggedIn ( ) { $ session = $ this -> Controller -> request -> session ( ) ; if ( $ session -> check ( 'Auth.CakeAdmin' ) ) { return ( bool ) $ session -> read ( 'Auth.CakeAdmin' ) ; } return false ; }
docstring: Checks if an administrator is logged in.
  
  @return bool
docstring_tokens: Checks if an administrator is logged in .