do we need here to check for hasOwnProperty? wouldn't it be sufficient if(typeof pendingChanges[event.contactID)] !== 'undefined')