Right. But, more properly to use `hasattr()` (http://docs.python.org/2/library/functions.html#hasattr).