use array_walk_recursive in case link is an array.