Use array_walk_recursive and use more elaborate example in spec