PEP8: Use is/is not for None/False comparison
Remove unnecessary parenthesis around conditions.