Less if's more switch-ah