You're right. PEP 8 [proposes](http://www.python.org/dev/peps/pep-0008/#programming-recommendations) `if not value` to check whether iterator *value* is empty.