A ternary does look better

You're right @jvdp, it does look better this way.