This ternary here is confusing