check for key to prevent a crash when unarchiving data