infoboxData ); if ( $this->externalParser ) { $nodeFactory->setExternalParser( $this->externalParser ); } $layout = $this->getXmlAttributeFromSupported( $this->xmlNode, self::DATA_LAYOUT_ATTR_NAME, $this->supportedGroupLayouts); $value = $nodeFactory->getDataFromNodes( $this->xmlNode, $this ); return [ 'value' => $value, 'layout' => $layout ]; } public function isEmpty( $data ) { foreach ( $data[ 'value' ] as $elem ) { if ( $elem[ 'type' ] != 'header' && !( $elem[ 'isEmpty' ] ) ) { return false; } } return true; } }