src/Valkyrja/Events/NativeEvents.php
public function hasListeners(string $event): bool
    {
        return $this->has($event) && ! empty(self::$events[$event]);
    }
public function hasListeners(string $event): bool
    {
        return $this->has($event) && ! empty(self::$events[$event]);
    }
Determine whether an event has listeners.

@param string $event The event

@return bool