Add hasEventListener and getEventListeners