private function isClassLoadable($className)
    {
        try {
            $exists = class_exists($className);
        } catch (ContextErrorException $e) {
            if ($e->getSeverity() === E_WARNING && basename($e->getFile()) === 'ClassLoader.php') {
                return false;
            }
            throw $e;
        }

        return $exists;
    }
private function isClassLoadable($className)
    {
        try {
            $exists = class_exists($className);
        } catch (ContextErrorException $e) {
            if ($e->getSeverity() === E_WARNING && basename($e->getFile()) === 'ClassLoader.php') {
                return false;
            }
            throw $e;
        }

        return $exists;
    }
private function isClassLoadable ( $ className ) { try { $ exists = class_exists ( $ className ) ; } catch ( ContextErrorException $ e ) { if ( $ e -> getSeverity ( ) === E_WARNING && basename ( $ e -> getFile ( ) ) === 'ClassLoader.php' ) { return false ; } throw $ e ; } return $ exists ; }
Check if a class is loadable.

This comes about as local extensions that are moved or removed will over
emmit warnings while trying to validly rebuild autoloaders.

@param string $className

@throws ContextErrorException

@return bool
Check if a class is loadable .