(a) The court, upon finding as a matter of law that a contract or contract clause was unconscionable at the time the contract was made, may refuse to enforce the contract, enforce the remainder of the contract without the unconscionable clause, or limit the application of any unconscionable clause in order to avoid an unconscionable result.
(b) Whenever it is claimed, or appears to the court, that a contract or any contract clause is or may be unconscionable, the parties, in order to aid the court in making the determination, must be afforded a reasonable opportunity to present evidence as to:
(1) The commercial setting of the negotiations;