protected function checkClassExists($className, $throwException = true)
    {
        if (class_exists($className)) {
            return true;
        }

        if ($throwException) {
            throw new \BadMethodCallException(
                sprintf('%s not found. Please check your dependencies in composer.json', $className)
            );
        }

        return false;
    }
protected function checkClassExists($className, $throwException = true)
    {
        if (class_exists($className)) {
            return true;
        }

        if ($throwException) {
            throw new \BadMethodCallException(
                sprintf('%s not found. Please check your dependencies in composer.json', $className)
            );
        }

        return false;
    }
protected function checkClassExists ( $ className , $ throwException = true ) { if ( class_exists ( $ className ) ) { return true ; } if ( $ throwException ) { throw new \ BadMethodCallException ( sprintf ( '%s not found. Please check your dependencies in composer.json' , $ className ) ) ; } return false ; }
Check if class available

@param string $className
@param bool $throwException
@throw BadMethodCallException
@return bool
Check if class available