Can you make this a regular `if` statement? Nested ternaries are confusing and don't format well either.