original_string: public function userExists($userLogin)
      {
          if ($userLogin == 'anonymous') {
              return true;
          }
  
          Piwik::checkUserIsNotAnonymous();
          Piwik::checkUserHasSomeViewAccess();
  
          if ($userLogin == Piwik::getCurrentUserLogin()) {
              return true;
          }
  
          return $this->model->userExists($userLogin);
      }
code: public function userExists($userLogin)
      {
          if ($userLogin == 'anonymous') {
              return true;
          }
  
          Piwik::checkUserIsNotAnonymous();
          Piwik::checkUserHasSomeViewAccess();
  
          if ($userLogin == Piwik::getCurrentUserLogin()) {
              return true;
          }
  
          return $this->model->userExists($userLogin);
      }
code_tokens: public function userExists ( $ userLogin ) { if ( $ userLogin == 'anonymous' ) { return true ; } Piwik :: checkUserIsNotAnonymous ( ) ; Piwik :: checkUserHasSomeViewAccess ( ) ; if ( $ userLogin == Piwik :: getCurrentUserLogin ( ) ) { return true ; } return $ this -> model -> userExists ( $ userLogin ) ; }
docstring: Returns true if the given userLogin is known in the database
  
  @param string $userLogin
  @return bool true if the user is known
docstring_tokens: Returns true if the given userLogin is known in the database