If, at a dispositional hearing of a child found to be a delinquent or at any hearing, the evidence indicates that the child may be subject to commitment or detention under the provisions of the act of October 20, 1966 (3rd Sp.Sess., P.L.96, No.6), known as the 'Mental Health and Mental Retardation Act of 1966,' or the act of July 9, 1976
Pennsylvania Legal Code