Fixed isMultidimensional
Performance improvement