178(1)Subject to subsections (2) and (3), where insurance money is payable in instalments and a contract, or an instrument signed by the insured and delivered to the insurer, provides that a beneficiary has not the right to commute the instalments or to alienate or assign his interest therein, the insurer shall not, unless the insured subsequently directs otherwise in writing, commute the instalments or pay them to any person other than the beneficiary; and the instalments are not, in the hands of the insurer, subject to any legal process except an action to recover the value of necessaries supplied to the beneficiary or his children who are minors.