Use ternary statements in Twig
Issue:
You want to conditionally pass values to components in Twig based on variable existence or content.
Solution:
Uses Twig’s ternary operator to check variable conditions and pass either an object with the variable or false.
If you're working with more complex objects, make sure to handle the empty test according to the Twig documentation on empty, as its behavior may vary depending on the object's implementation.