If instead of assert here