If the court determines that the lien or other encumbrance is in violation of Section 765.010, the court shall issue an order striking and releasing the lien or other encumbrance and may award costs and reasonable attorney's fees to the petitioner to be paid by the lien or other encumbrance claimant. If the court determines that the lien or other encumbrance is valid, the court shall issue an order so stating and may award costs and reasonable attorney's fees to the encumbrance claimant to be paid by the petitioner. The court may direct that an order issued pursuant to this section be recorded.
Ca. Civ. Proc. Code § 765.030