hasEventHandler(event) {
    if (!this.events) {
      return false;
    }

    const type = `${this.options.namespace}.${event}`;

    return this.events.listeners(type).some((listener) => {
      if (!listener) {
        return false;
      }

      return listener.id === this.id || listener.key === this.key;
    });
  }
Check if the component has an event handler set up for the event.
@param {string} event - The event name.
@returns {boolean} - TRUE if the event is registered, FALSE otherwise.