stride > 0 only occurs when stride != width*height*channels, but yes this is more readable and makes more sense.