How to test the existence of a file in a webform email twig template
The solution is to do this

{% if webform_token('[webform_submission:values:file:clear]', webform_submission) %}
  FILE UPLOADED
{% else %}
  NO FILE UPLOADED
{% endif %}

Solution given first here : https://www.drupal.org/project/webform/issues/2969437