(You could save a line per case by omitting default and moving the return false outside the switch)