If the action is brought by a private citizen and the court finds that the action was frivolous or motivated by bad faith, costs and attorney fees may be taxed to the person.