It might read better to write out `view->shape[k] != 0`.