The problem with a regular for-each loop is that alarms can potentially be deleted as we are iterating through the loop, since triggerAlarm sometimes deletes the alarm if it is a non-repeating alarm. I think it's safer to iterate like this.