Check to see if object exists already before writing new one.