protected function _hasCachedEvent($event)
    {
        $name = ($event instanceof EventInterface)
            ? $event->getName()
            : $event;

        return isset($this->eventCache[$name]);
    }
protected function _hasCachedEvent($event)
    {
        $name = ($event instanceof EventInterface)
            ? $event->getName()
            : $event;

        return isset($this->eventCache[$name]);
    }
protected function _hasCachedEvent ( $ event ) { $ name = ( $ event instanceof EventInterface ) ? $ event -> getName ( ) : $ event ; return isset ( $ this -> eventCache [ $ name ] ) ; }
Checks if an event instance exists in cache for the given event name.

@since [*next-version*]

@param string|Stringable|EventInterface $event The name of the event, or the event instance.

@return bool True if an event instance exists for the given event name, false otherwise.
Checks if an event instance exists in cache for the given event name .