array_walk not working on PHP5.2