Adds a __nonzero__ method so that checking truthiness does not cause __len__ to run