(a) A policy of group life insurance or the proceeds thereof payable to the individual insured or to the beneficiary thereunder shall not be liable, either before or after payment, to be applied to any legal or equitable process to pay any liability of any person having a right under the policy. The proceeds thereof, when not made payable to a named beneficiary or to a third person pursuant to a facility-of-payment clause, shall not constitute a part of the estate of the individual insured for the payment of his debts.
(b) This section shall not apply to group life insurance policies issued to debtor groups pursuant to this title to the extent that such proceeds are applied to payment of the obligation for the purpose of which the insurance was so issued.