The parents or, in their absence or incapacity, the individual, entity or institution exercising parental authority, may petition the proper court of the place where the child resides, for an order providing for disciplinary measures over the child. The child shall be entitled to the assistance of counsel, either of his choice or appointed by the court, and a summary hearing shall be conducted wherein the petitioner and the child shall be heard.
However, if in the same proceeding the court finds the petitioner at fault, irrespective of the merits of the petition, or when the circumstances so warrant, the court may also order the deprivation or suspension of parental authority or adopt such other measures as it may deem just and proper. (318a)