original_string: protected function checkAuthentication()
      {
          $authSession = $this->readFromSession();
          if ($authSession) {
              if (isset($authSession['authenticated'])) {
                  $this->setAuthenticated($authSession['authenticated']);
              } else {
                  $this->setAuthenticated(false);
              }
  
              if (isset($authSession['data'])) {
                  $this->setAuthenticationData($authSession['data']);
              } else {
                  $this->setAuthenticationData([]);
              }
  
              return true;
          }
          return false;
      }
code: protected function checkAuthentication()
      {
          $authSession = $this->readFromSession();
          if ($authSession) {
              if (isset($authSession['authenticated'])) {
                  $this->setAuthenticated($authSession['authenticated']);
              } else {
                  $this->setAuthenticated(false);
              }
  
              if (isset($authSession['data'])) {
                  $this->setAuthenticationData($authSession['data']);
              } else {
                  $this->setAuthenticationData([]);
              }
  
              return true;
          }
          return false;
      }
code_tokens: protected function checkAuthentication ( ) { $ authSession = $ this -> readFromSession ( ) ; if ( $ authSession ) { if ( isset ( $ authSession [ 'authenticated' ] ) ) { $ this -> setAuthenticated ( $ authSession [ 'authenticated' ] ) ; } else { $ this -> setAuthenticated ( false ) ; } if ( isset ( $ authSession [ 'data' ] ) ) { $ this -> setAuthenticationData ( $ authSession [ 'data' ] ) ; } else { $ this -> setAuthenticationData ( [ ] ) ; } return true ; } return false ; }
docstring: Checks whether there's an auth session active at this point.
  
  @return bool
docstring_tokens: Checks whether there s an auth session active at this point .