Adding guard on empty appeals dataframe