Correct ternary operator explanation