Maybe something like:
```php
$taggedSubscribers = $container->findTaggedServiceIds($this->tagPrefix.'.event_subscriber');
$taggedListeners   = $container->findTaggedServiceIds($this->tagPrefix.'.event_listener'); 
if (empty($taggedSubscribers) && empty($taggedListeners)) {
    return;
}
```
Before setting-up stuff?