public function hasParentScope() : bool { return !empty($this->parent_scope) && $this->parent_scope !== null; }