Correct boolean logic for heuristic option