pep 8 boolean check

gotta love pep 8 :)