This part:
<?php if (isset($quantity_taxation_curr) && in_array($currency['code'], $quantity_taxation_curr)) { ?>
to become in twig format, i tried with this one:
{% if isset(quantity_taxation_curr) AND in_array(currency['code'], quantity_taxation_curr) %}
But it's not correct.