This would be better as `!listeners[event.type]` or event `typeof listeners[event.type] !== 'function'` to catch people passing `null` or some other non-function value.