public function makeFirstChildOf($node) { if ($node->children()->count() == 0) { return $this->makeChildOf($node); } return $this->moveToLeftOf($node->children()->first()); }