Code cleanup
compare bools with === not ==