public function before($content) { return $this->applyToSpawn($this->_nodes, $content, function ($targetNode, $contentNodes) { return $this->modify($targetNode)->insertNodesBefore($contentNodes); }); }