check_dataset function

Check that the dataset is not empty and has more than 1 column.