code: def check_set(set=None, family='ipv4'):
      '''
      Check that given ipset set exists.
  
      .. versionadded:: 2014.7.0
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' ipset.check_set setname
  
      '''
      if not set:
          return 'Error: Set needs to be specified'
  
      setinfo = _find_set_info(set)
      if not setinfo:
          return False
      return Truf check_set(set=None, family='ipv4'):
      '''
      Check that given ipset set exists.
  
      .. versionadded:: 2014.7.0
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' ipset.check_set setname
  
      '''
      if not set:
          return 'Error: Set needs to be specified'
  
      setinfo = _find_set_info(set)
      if not setinfo:
          return False
      return True
docs: Check that given ipset set exists.
  
      .. versionadded:: 2014.7.0
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' ipset.check_set setname