$categs['data'][$i]['subcats']=$subcats['data'];}if($categs['data'][$i]['childrenType']=='d'&&$categs['data'][$i]['viewableChildren']>0){// Generate the subcategories with most hist as the subcategories to show.