Convert the file to array if not an array