'Return nonempty if the object exists in this index.'

def exists(self, hash, want_source=False):

    if (hash and (self._idx_from_hash(hash) != None)):
        return ((want_source and os.path.basename(self.name)) or True)
    return None
