def __nonzero__(self):
        try:
            self.resource.head()
            return True
        except:
            return False
Make sure a value is a string and is stripped of whitespace.
dataset/ETHPy150Open djc/couchdb-python/couchdb/client.py/Server.__nonzero__--crossover with--dataset/ETHPy150Open girder/girder/girder/models/item.py/Item._validateString