This is really a "coding style", but I've heard people don't like `switch` statements that much (I think too risky to forget a `break` statement is one of the reason, I only skimmed it but if you're curious you can look at http://ericleads.com/2012/12/switch-case-considered-harmful/).

Anyway, you could use an `if/else` or `if` with early `return` here. There are only 2 cases after all :)