'Return True/False'

def _does_pgroup_exist(self, array, pgroup_name):

    try:
        array.get_pgroup(pgroup_name)
        return True
    except purestorage.PureHTTPError as err:
        with excutils.save_and_reraise_exception() as ctxt:
            if ((err.code == 400) and (ERR_MSG_NOT_EXIST in err.text)):
                ctxt.reraise = False
                return False
