I wasn't sure what he was asking. But, assuming he already found the record he wanted to edit, he could use empty() to see if there was a value there right? If it returns true he'll replace it with a value otherwise not.
if i missunderstood the question i'm sorry my mistake.
Work as if you don't need money
Love as if you've never been hurt before
Live as if this is your last day to live
Dance as if no one's watching