docs: def _get_hgroup(name, array):
      '''Private function to check hostgroup'''
      hostgroup = None
      for temp in array.list_hgroups():
          if temp['name'] == name:
              hostgroup = temp
              break
      return hostgroup