Use a boolean operator instead of the ternary operator