In case of the dismissal of the petition, the court may, if it considers the petition to have been filed with malicious intent, order the petitioner to pay the expenses in connection therewith, and may enforce such payment by such further orders as it deems necessary.
Ca. Welf. and Inst. Code § 6510