function isParent($tag, $recursive = false) { return $this->hasParent($tag, $recursive) === ($tag !== null); }