The court may render judgment for costs and attorney fees, or any part thereof, against any party, as the court may consider fair. However, no attorney fees shall be awarded to a petitioner when judgment is granted against the petitioner or the petition is dismissed on the merits.
La. C.P. § 4550