The court may award to the defendant court costs and reasonable attorney's fees in relation to the work expended on a finding by the court that a class action under this subchapter was brought by an individual plaintiff in bad faith or for the purpose of harassment.
Tex. Ins. Code § 541.253