docs: def _get_pgroup(name, array):
      '''Private function to check protection group'''
      pgroup = None
      for temp in array.list_pgroups():
          if temp['name'] == name:
              pgroup = temp
              break
      return pgroup