you need to check the value for the display mode, otherwise the twig template will break.