Merchants forget to fill in descriptions. Product cards then render with weird empty patches. The customer assumes the store is broken.
The obvious fix is an {% if %} block wrapping the output. It works. It also takes four lines to express something one pipe can handle.
Liquid's filter substitutes a fallback when the input is empty. Pipe in the value, pass the fallback as the argument:
{{ product.description | default: "No description yet." }}
{# Empty/nil description -> "No description yet." #}
{# Real description -> renders as normal #}
{{ shop.email | default: shop.url }}
{# The fallback can be another Liquid expression #}
default catches nil, false, empty strings, and whitespace-only strings in one expression. AI tools default to the four-line {% if %} block; the filter is the convention in every paid theme.