code: def exists(name, runas=None):
      '''
      Query whether a VM exists
  
      .. versionadded:: 2016.11.0
  
      :param str name:
          Name/ID of VM
  
      :param str runas:
          The user that the prlctl command will be run as
  
      Example:
  
      .. code-block:: bash
  
          salt '*' parallels.exists macvm runas=macdev
      '''
      vm_info = list_vms(name, info=True, runas=runas).splitlines()
      for info_line in vm_info:
          if 'Name: {0}'.format(name) in info_line:
              return True
      return Falsf exists(name, runas=None):
      '''
      Query whether a VM exists
  
      .. versionadded:: 2016.11.0
  
      :param str name:
          Name/ID of VM
  
      :param str runas:
          The user that the prlctl command will be run as
  
      Example:
  
      .. code-block:: bash
  
          salt '*' parallels.exists macvm runas=macdev
      '''
      vm_info = list_vms(name, info=True, runas=runas).splitlines()
      for info_line in vm_info:
          if 'Name: {0}'.format(name) in info_line:
              return True
      return False
docs: Query whether a VM exists
  
      .. versionadded:: 2016.11.0
  
      :param str name:
          Name/ID of VM
  
      :param str runas:
          The user that the prlctl command will be run as
  
      Example:
  
      .. code-block:: bash
  
          salt '*' parallels.exists macvm runas=macdev