Optimization to removes a slice and avoid calculating handler selectors if there is no listener