protected function getParentCategory($rowData)
    {
        if ($rowData[self::COL_CATEGORY] == $this->getCategoryName($rowData)) {
            // if _category eq. name then we don't have parents
            $parent = false;
        } else {
            $categoryParts = $this->explodeEscaped($this->_scopeConfig->getValue(Config::XML_PATH_CATEGORY_PATH_SEPERATOR), $rowData[self::COL_CATEGORY]);
            array_pop($categoryParts);
            $parent = $this->implodeEscaped($this->_scopeConfig->getValue(Config::XML_PATH_CATEGORY_PATH_SEPERATOR), $categoryParts);
        }

        if ($parent) {
            if (isset($this->categoriesWithRoots[$rowData[self::COL_ROOT]][$parent])) {
                return $this->categoriesWithRoots[$rowData[self::COL_ROOT]][$parent];
            } elseif (isset($this->newCategory[$rowData[self::COL_ROOT]][$parent])) {
                return $this->newCategory[$rowData[self::COL_ROOT]][$parent];
            } else {
                return false;
            }
        } elseif (isset($this->categoriesWithRoots[$rowData[self::COL_ROOT]])) {
            return reset($this->categoriesWithRoots[$rowData[self::COL_ROOT]]);
        } else {
            return false;
        }
    }