6 Support for the ``__toString()`` magic method has been added in Twig 1.33.
8 ``empty`` checks if a variable is an empty string, an empty array, an empty
9 hash, exactly ``false``, or exactly ``null``.
11 For objects that implement the ``Countable`` interface, ``empty`` will check the
12 return value of the ``count()`` method.
14 For objects that implement the ``__toString()`` magic method (and not ``Countable``),
15 it will check if an empty string is returned.