AVOID bool literals in conditional expressions.
BAD:
condition ? true : boolExpression
condition ? false : boolExpression
condition ? boolExpression : true
condition ? boolExpression : false
GOOD:
condition || boolExpression
!condition && boolExpression
!condition || boolExpression
condition && boolExpression