The following is better: `if(!use_turn_restrictions )`. lvalues should be on the right hand side of the comparisons if possible.