Display varient option only when there are at least 2 varients - product template

Hello,

I wonder how can you do using liquid on the product template, to display varient option only when there are at least 2 varients to the product. if there is only one varient, it will not display the choosing option.

Thanks!