nit: is this really needed? Won't the assert on line 75 do this? I think we generally favor removing dead assertions, but you can leave it if there's a good reason.