@marc-mabe , we can in fact remove the three conditionals by taking advantage of the fact that boolean are implciiteyl converted to int, so:

```php
$mergeCount = ((isset($this->events[$eventName]) && ($listeners = $this->events[$eventName]) + ...
```

What do you think? :)