(a) Exclusion of Minors Generally. The court may exclude any minor child from attending any proceeding if:
(1) the child’s attendance is not in the child’s best interests, or
(2) the child’s attendance might be disruptive or distracting.
(b) Attendance of a Minor Child Affected by the Proceeding. A minor child affected by the proceeding may not attend any proceeding involving the child or the child’s parents without the court’s prior permission.