src/EB/SDK/Validators/DataValidator.php
public function isCategoriesValid(array $categoriesCode)
    {
        foreach ($categoriesCode as $category) {
            if (! in_array($category, $this->availableCategories)) {

                return false;
            }
        }

        return true;
    }
public function isCategoriesValid(array $categoriesCode)
    {
        foreach ($categoriesCode as $category) {
            if (! in_array($category, $this->availableCategories)) {

                return false;
            }
        }

        return true;
    }
@param array $categoriesCode

@return bool