Using ternaries

Using the ? to write out a conditional all in one line and return
values.