Added check to make sure the batch_list is an array.