(1) If the court as a matter of law finds a rental agreement or any provision of a rental agreement to have been unconscionable at the time it was made, the court may refuse to enforce the rental agreement, enforce the remainder of the rental agreement without the unconscionable provision, or so limit the application of any unconscionable provision as to avoid any unconscionable result.
(2) When it is claimed or appears to the court that the rental agreement or any provision thereof may be unconscionable, the parties shall be afforded a reasonable opportunity to present evidence as to meaning, relationship of the parties, purpose, and effect to aid the court in making the determination.