Added check that object won't cause crash when added