A 2nd attempt at implementing isReferenced.