This check is causing np.ndindex() to fail in master which I didn't catch earlier.   Why is this check here?   We needed to remove this check to get code that used np.ndindex() working against master.