get rid of that annoying if.

I mean ternary is so much nicer for this usage.