Replace a terniary statement something easier to read.

Replace a terniary statement with something that's not only easier
to read but cleans up a warning at the same time.