I found out that this should be `if (EE.listenerCount(this, 'error') <= 3) {`.