The code never gets executed, as `idim` is the iteration over `ndim` and `ndim` is 0. So I think it should be fine, though I admit, I didn't yet understand all of what happens inside that loop.