An 'else' condition to play an audio file on repeat or a media player playlist if there is no wifi connection would be insurance against no alarm.