A {% for %} loop has an {% else %} branch. It runs when the list is empty. No extra {% if %} needed.
{% for product in collection.products %}
<article class="card">{{ product.title }}</article>
{% else %}
<p>Nothing here yet.</p>
{% endfor %}
Products present? You see the cards. Empty collection? The shopper sees a real sentence, not a blank page that looks broken.
AI tell: a loop with no `{% else %}`. The test collection always has products, so it looks done. Every merchant eventually hits the empty case.