added check to make sure header and rows are the same length for array_combine()