replace ternary with good, old if/else