Improved EventDispatcher.has().