def _Exists(self):
    """Returns true if the disk exists."""
    if self.name is None and self.created:
      return True
    elif self.name is None:
      return False
    show_cmd = [AZURE_PATH,
                'vm',
                'disk',
                'show',
                '--json',
                self.name]
    stdout, _, _ = vm_util.IssueCommand(show_cmd, suppress_warning=True)
    try:
      json.loads(stdout)
    except ValueError:
      return False
    return True
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/providers/azure/azure_disk.py/AzureDisk._Exists/original