code: public boolean hasSubscribers(String eventName, boolean exact) {
          while (!StringUtils.isEmpty(eventName)) {
              if (hasSubscribers(eventName)) {
                  return true;
              } else if (exact) {
                  return false;
              } else {
                  eventName = stripLevel(eventName);
              }
          }
          
          return false;
      }
docs: Returns true If the event has subscribers.
  
  @param eventName Name of the event.
  @param exact If false, will iterate through parent events until a subscriber is found. If
  true, only the exact event is considered.
  @return True if a subscriber was found.