please else {} this. I find that some bugs come about because of missing the break of the if return; default value. An else makes it clear and you don't have to worry about the extra return line.