Make ternary conditional nicely formatted