It took some time to get it going, but this fixed it. Somehow it was impossible to use the data inside a function inside the walker. So I copied everything in the walker itself and together with your code it’s working now. Not the prettiest solution, but the best for now.
Thanks