Hide price excluding tax when price is empty

I’d try to add a condition :

<?php if(woocommerce_price ($product-> get_price_excluding_tax ()) != '0.00') // If price is not equal to 0.00
{ echo woocommerce_price ($product-> get_price_excluding_tax ()); }
?>

Let me know if it worked !