nit: switch to using if (!(name in alarms)) return;