Skip to content

How to define if product has swatches?

Magento 2.4.4.
I am getting some configurable product model.

$product = $block->getProduct();

I need to determine, whether this product has swatches or not.

Thanks for any help.