Add existence test in update.