Ariz. Rev. Stat. § 38-814
A. If the plan terminates, each member's accrued benefits to the date of termination become one hundred percent nonforfeitable to the extent funded. After provision is made for all expenses of the plan, including expenses of liquidation, the assets of the plan shall be allocated by the payment or provision for the payment of benefits in the following order of preference: