check replacement element exists with original id