/** * Returns whether we have at least 1 subitem for a specific parent row. * * @param array $row Parent Row Information * * @return bool */ public function hasSubitems(array $row) { if (!is_array($row)) { if (TYPO3_DLOG) { GeneralUtility::devLog('hasSubitems (leaf) gets passed invalid parameters.', COMMERCE_EXTKEY, 3); } return false; } return !empty($this->data->getChildrenByPid($row['uid'])); }