original_string: public static function hasAttribute($key)
      {
          phpCAS::_validateClientExists();
  
          try {
              return self::$_PHPCAS_CLIENT->hasAttribute($key);
          } catch (Exception $e) {
              phpCAS :: error(get_class($e) . ': ' . $e->getMessage());
          }
      }
code: public static function hasAttribute($key)
      {
          phpCAS::_validateClientExists();
  
          try {
              return self::$_PHPCAS_CLIENT->hasAttribute($key);
          } catch (Exception $e) {
              phpCAS :: error(get_class($e) . ': ' . $e->getMessage());
          }
      }
code_tokens: public static function hasAttribute ( $ key ) { phpCAS :: _validateClientExists ( ) ; try { return self :: $ _PHPCAS_CLIENT -> hasAttribute ( $ key ) ; } catch ( Exception $ e ) { phpCAS :: error ( get_class ( $ e ) . ': ' . $ e -> getMessage ( ) ) ; } }
docstring: Answer true if an attribute exists for the authenticated user.
  
  @param string $key attribute name
  
  @return bool
  @warning should only be called after phpCAS::forceAuthentication()
  or phpCAS::checkAuthentication().
docstring_tokens: Answer true if an attribute exists for the authenticated user .