Unreal Engine crashes in packaged build when creating an object

why are you doing all those if checks? any particular reason?