How about a `switch()` instead of the 3 `if`s?