Not every browser was happy with undefined in the switch