public function insertBefore($selector) { return $this->applyToSelector($selector, function ($targetNode, $contentNodes) { return $this->modify($targetNode)->insertNodesBefore($contentNodes); }, TRUE); }