tiny refactor: better function name
...and more sensible case order