Additional check for the existence of a key before attempting to delete it.