Remove a key if it exists when inserting