`msg = activitiesToSend[i];delete activitiesToSend[i]`