I'd suggest brackets for the else if, also the return_switch is already caught in the outer if.