Ok, but what's wrong with the ternary operator - seems to be valid Twig syntax?