Fix for keys with falsy values

improve fix for destroying a key with falsy values