Putting the ternary operator into a line by itself