If you're trying to set a nil object/key in the keychain, I'd say let the exception be thrown. That's a fairly serious error and should not go unnoticed.