IMHO, you should do `twig_shuffle_filter($data)` out of the loop, to cover all elements.