Clean up conditional statement in `name` method.

Reverse the conditional order to avoid awkward `if !` construction.