Checks whether an event has any registered listeners.
string $eventName The name of the event:
Boolean true if the specified event has any listeners, false otherwise
Overrides EventDispatcherInterface::hasListeners
public function hasListeners($eventName = null) {
return $this->dispatcher
->hasListeners($eventName);
}