getParentKey()) && $this->related instanceof Model) { return $this->query->getWithoutChildren(); } return ! is_null($this->getParentKey()) ? $this->query->get() : $this->related->newCollection(); } }