def _has_lock(self):
        if not self._owns_lock:
            return False

        return True
:return: True if we have a lock and if the lockfile still exists
dataset/ETHPy150Open codeinn/vcs/vcs/utils/lockfiles.py/LockFile._has_lock