move if/else to switch for readability

I was bored and saw this long if /else statement. I realise it doesn't add anything.

Untested