i think this check would not be necessary if you would use https://github.com/symfony-cmf/CreateBundle/blob/master/DependencyInjection/Configuration.php#L30