Assert/ensure data is in the correct shape.