You have too add `hasDefinition()` call to be sure that this listener exists.