private function isNodeScoreThreshholdMet(Element $topNode, Element $node) { $topNodeScore = $this->getScore($topNode); $currentNodeScore = $this->getScore($node); $thresholdScore = $topNodeScore * 0.08; if ($currentNodeScore < $thresholdScore && $node->is(':not(td)')) { return false; } return true; }