How to determine if {{user_picture}} is not empty in the comment.html.twig template
The comment entity is available and you can get the author and its field data from that, e.g.
{% if comment.uid.entity.user_picture.target_id &gt; 0 %}
  {{ user_picture }}
{% else %}
  ...
{% endif %}