Twig filters are used to modify variables in templates. Twig functions are another way to do things in templates, but they don’t require an original variable to modify.
real_content condition to check if a rendered string contains actual data and not just empty wrappers