try is generally slow althogh getting faster
i would just check if typeof handlers[i] === 'function'

or even use jquery build in trigger/on pub sub

$.event.trigger('your:event, {data:[]} )

$(document).on('your:event', function(data){})