refactoring: remove listeners length checking