diff --git a/app/code/Magento/ConfigurableImportExport/Model/Import/Product/Type/Configurable.php b/app/code/Magento/ConfigurableImportExport/Model/Import/Product/Type/Configurable.php index 5969f872616e0..fdbd8560c2664 100644 --- a/app/code/Magento/ConfigurableImportExport/Model/Import/Product/Type/Configurable.php +++ b/app/code/Magento/ConfigurableImportExport/Model/Import/Product/Type/Configurable.php @@ -336,7 +336,7 @@ private function identifySuperAttributeError($superAttrCode, $rowNum) // Does this attribute code exist? $sourceAttribute = $this->doesSuperAttributeExist($superAttrCode); - if (!is_null($sourceAttribute)) { + if (is_array($sourceAttribute)) { $codeExists = true; // Does attribute have the correct settings? if (isset($sourceAttribute['is_global']) && $sourceAttribute['is_global'] !== '1') { @@ -374,8 +374,7 @@ function ($element) use ($superAttrCode) { ); // Return the first element of the filtered array (if found). - if (count($filteredAttribute)) - { + if (count($filteredAttribute)) { $returnAttributeArray = array_shift($filteredAttribute); } }