docs: def isHandlerPresent(self, event_name):
          """Check if an event has an handler."""
          if event_name not in self.handlers:
              raise ValueError('{} is not a valid event'.format(event_name))
          return self.handlers[event_name] is not None