The minor, unless excused by the court for good cause shown, shall attend personally before the court upon the hearing of the petition.