Use hastListeners instead of custom flag, 0.7.3

(hasListener(fun) does not work)