Added if loop to allow using category entity ids instead of paths to set categories while importing products using nested arrays