Prefer if/else to switch