(a) In making adoption arrangements, potential adopting parents and birth parents may obtain counsel to provide legal advice and assistance.
(b) Upon the motion of any party, or upon the court's own motion, before or after the filing of petition for adoption the court may appoint a guardian ad litem for the adoptee, or for any incompetent or minor who is a party to the proceeding or who would be a party to the proceeding. In the event of a contested adoption, a guardian ad litem shall be appointed. The fees of a guardian ad litem shall be assessed as court costs.