ternary operator is hard to read and easy to use incorrectly.
just use a regular if condition.