How can I modify code to show 'low stock' label for total inventory?

Hi all,

I found this code to help me add a ‘low stock’ label to products

{% if product.first_available_variant.inventory_quantity < 2 %}
LOW STOCK
{% endif %}

It’s working, but how can I make it show for total inventory < 2 (instead of only first variant)?

Thanks