I think it should also check if other is contiguous.