HasParent performance improvement (hopefully)