How about `sound = sound || this.alarm.sound`?

Also you should always just do `sound !== undefined`... I think the `typeof` thing is possibly more IE compatible, but we don't care here! <3 Gecko