The `i = handlers.length` assign statement is executed only one time, so we don't need to cache it.