Check if any hooks are registered for an event.
bool hasHooks(HookEvent event) => _hooks.containsKey(event) && _hooks[event]!.isNotEmpty;