Returns true if a particular event type has any listeners attached to it.
external bool listens(String type);