Shorten if/else logic using a ternary.