wouldnt ``array_map`` make much more sense here? the ``array_walk`` with by reference manipulation is hard to read imho