Replaced boolean tests with is None.
5 files changed