An Assertion isn't a good error check since it doesn't execute in release builds, I recommend adding an early exit statement here.