Deal with empty data frames