Could we do:

```
if name is not None
```
instead of
```
if name
```
The reasoning is explained in pep-8:
"Comparisons to singletons like None should always be done with is or is not, never the equality operators."
http://www.python.org/dev/peps/pep-0008/