Twig function isActive by checkbox