code: def resource_group_check_existence(name, **kwargs):
      '''
      .. versionadded:: 2019.2.0
  
      Check for the existence of a named resource group in the current subscription.
  
      :param name: The resource group name to check.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-call azurearm_resource.resource_group_check_existence testgroup
  
      '''
      result = False
      resconn = __utils__['azurearm.get_client']('resource', **kwargs)
      try:
          result = resconn.resource_groups.check_existence(name)
  
      except CloudError as exc:
          __utils__['azurearm.log_cloud_error']('resource', str(exc), **kwargs)
  
      return resulf resource_group_check_existence(name, **kwargs):
      '''
      .. versionadded:: 2019.2.0
  
      Check for the existence of a named resource group in the current subscription.
  
      :param name: The resource group name to check.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-call azurearm_resource.resource_group_check_existence testgroup
  
      '''
      result = False
      resconn = __utils__['azurearm.get_client']('resource', **kwargs)
      try:
          result = resconn.resource_groups.check_existence(name)
  
      except CloudError as exc:
          __utils__['azurearm.log_cloud_error']('resource', str(exc), **kwargs)
  
      return result
docs: .. versionadded:: 2019.2.0
  
      Check for the existence of a named resource group in the current subscription.
  
      :param name: The resource group name to check.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt-call azurearm_resource.resource_group_check_existence testgroup