code: private function _generateLoop ($handle, $data, $sitemapData)
  	{
  		if (!array_key_exists($handle, $sitemapData))
  			return;
  
  		foreach ($data as $item)
  			if (array_key_exists($item['id'], $sitemapData[$handle]))
  				if ($sitemapData[$handle][$item['id']]->enabled)
  					$this->_generateIndex($handle, $item['id']);
  	}
docs: @param $handle
  @param $data
  @param $sitemapData
  
  @throws \yii\base\Exception