isHighLinkDensity changes taken from albertian fork