How do I check option stock level/availability in liquid?

I was hoping that the following would work in liquid…

{% if product.available %}

But the false condition never seems to apply for variants of a product that are out of stock. What am I doing wrong ?