if foo: is ambiguous for all but simple types
This should be added as a warning with the suggested
if foo is not None:
if foo =! None:
See the thread "Python documentation and default
for the inspiration for this.