src/Event.php
public static function hasHandler($event) {
        $event = strtolower($event);
        return array_key_exists($event, self::$handlers) && !empty(self::$handlers[$event]);
    }
public static function hasHandler($event) {
        $event = strtolower($event);
        return array_key_exists($event, self::$handlers) && !empty(self::$handlers[$event]);
    }
Checks if an event has a handler.

@param string $event The name of the event.
@return bool Returns `true` if the event has at least one handler, `false` otherwise.