(b) such petition alleges that charges alleging the commission of any of the sex offenses defined in Article 11 or in Sections 11-1.20, 11-1.30, 11-1.40, 11-1.50, 11-1.60, 12-13, 12-14, 12-14.1, 12-15 or 12-16 of the Criminal Code of 1961 or the Criminal Code of 2012, have been filed against a defendant in any court and that such minor is the alleged victim of the acts of defendant in the commission of such offense.
Unless the guardian ad litem appointed pursuant to this paragraph (1) is an attorney at law, he or she shall be represented in the performance of his or her duties by counsel. The guardian ad litem shall represent the best interests of the minor and shall present recommendations to the court consistent with that duty.