In any claim brought under this chapter applying to illegal, fraudulent or unconscionable conduct or any prohibited debt collection practice, the court may award all or a portion of the costs of litigation, including reasonable attorney fees, court costs and fees, to the consumer. On a finding by the court that a claim brought under this chapter applying to illegal, fraudulent or unconscionable conduct or any prohibited debt collection practice was brought in bad faith and for the purposes of harassment, the court may award to the defendant reasonable attorney fees.