original_string: public function hasPassword(\Gems_User_User $user)
      {
          $sql = "SELECT CASE WHEN gup_password IS NULL THEN 0 ELSE 1 END FROM gems__user_passwords WHERE gup_id_user = ?";
  
          return (boolean) $this->db->fetchOne($sql, $user->getUserLoginId());
      }
code: public function hasPassword(\Gems_User_User $user)
      {
          $sql = "SELECT CASE WHEN gup_password IS NULL THEN 0 ELSE 1 END FROM gems__user_passwords WHERE gup_id_user = ?";
  
          return (boolean) $this->db->fetchOne($sql, $user->getUserLoginId());
      }
code_tokens: public function hasPassword ( \ Gems_User_User $ user ) { $ sql = "SELECT CASE WHEN gup_password IS NULL THEN 0 ELSE 1 END FROM gems__user_passwords WHERE gup_id_user = ?" ; return ( boolean ) $ this -> db -> fetchOne ( $ sql , $ user -> getUserLoginId ( ) ) ; }
docstring: Return true if the user has a password.
  
  @param \Gems_User_User $user The user to check
  @return boolean
docstring_tokens: Return true if the user has a password .