original_string: public static function classExists( $className, $autoload = true )
      {
          try
          {
              if ( class_exists( $className, $autoload ) )
              {
                  return true;
              }
              return false;
          }
          catch ( ezcBaseAutoloadException $e )
          {
              return false;
          }
      }
code: public static function classExists( $className, $autoload = true )
      {
          try
          {
              if ( class_exists( $className, $autoload ) )
              {
                  return true;
              }
              return false;
          }
          catch ( ezcBaseAutoloadException $e )
          {
              return false;
          }
      }
code_tokens: public static function classExists ( $ className , $ autoload = true ) { try { if ( class_exists ( $ className , $ autoload ) ) { return true ; } return false ; } catch ( ezcBaseAutoloadException $ e ) { return false ; } }
docstring: Returns if a given class exists.
  Checks for a given class name and returns if this class exists or not.
  Catches the ezcBaseAutoloadException and returns false, if it was thrown.
  
  @param string $className The class to check for.
  @param bool $autoload True to use __autoload(), otherwise false.
  @return bool True if the class exists. Otherwise false.
docstring_tokens: Returns if a given class exists . Checks for a given class name and returns if this class exists or not . Catches the ezcBaseAutoloadException and returns false if it was thrown .