why do these if checks? shouldn't we always have a valid value for iSyncTarget + iOriginId?