Fixing an error thrown when passing an empty array to import_from_csv