I'm not sure what you mean with 'closest link' or how adding extra elements and checking on those is different from this approach.