Php Loop Through Multidimensional Array Unknown Depth