And/or operators are better than ternary here.