Please avoid using ``class_exists`` and use: https://github.com/sonata-project/SonataAdminBundle/blob/master/DependencyInjection/SonataAdminExtension.php#L36-L39