The right way to check for empty content in Twigby mohit.aghera / 2 June 2022 Have you ever used {% if content|render|trim is not empty %} in twig to validate content is not empty? If so, you might end up with some surprises related to the use of the render method.