/**
  * Check all Odoo IDs for categories and create new Magento category if Odoo ID is not registered.
  *
  * @param int[] $cats
  */
 public function checkCategoriesExistence($cats)
 {
     if (is_array($cats)) {
         foreach ($cats as $odooId) {
             /* get mageId by odooId from registry */
             $mageId = $this->_repoRegistry->getCategoryMageIdByOdooId($odooId);
             if (!$mageId) {
                 $mageId = $this->createMageCategory('Cat #' . $odooId);
                 $this->_repoRegistry->registerCategory($mageId, $odooId);
             }
         }
     }
 }