please express this as "idx < _mouseEvents.length"