public static function classExists( $className, $autoload = true )
    {
        try
        {
            if ( class_exists( $className, $autoload ) )
            {
                return true;
            }
            return false;
        }
        catch ( ezcBaseAutoloadException $e )
        {
            return false;
        }
    }
public static function classExists( $className, $autoload = true )
    {
        try
        {
            if ( class_exists( $className, $autoload ) )
            {
                return true;
            }
            return false;
        }
        catch ( ezcBaseAutoloadException $e )
        {
            return false;
        }
    }
public static function classExists ( $ className , $ autoload = true ) { try { if ( class_exists ( $ className , $ autoload ) ) { return true ; } return false ; } catch ( ezcBaseAutoloadException $ e ) { return false ; } }
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.
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 .