Changing nested if's in getters to switch statements