I always use the explicit `is not None` test, which is also recommended in PEP8 as far as I know.