Use ternary operator instead.