I'd prefer to not put constraints on the required Twig version. If you can implement it using existing nodes, I think that would be the best approach.