Simplified Boolean expression (sonar)