(b) The department shall distribute the proceeds of a trust under this section
(1) to the child when the child
- (A) has reached 21 years of age; or
- (B) is no longer in the custody of the department and has reached at least 18 years of age or is emancipated; or
- (2) when ordered to do so by the court in the best interest of the child.