(2) In an action brought under subsection (1) of this section, the court may award the prevailing party costs and reasonable attorney fees. [2016 c.22 §2]