Update to multidimensional array check