Precodereview

you probably also want to enforce there is no id, instead of doing a conditional update.