Only allow pdf/spreadsheet if records exist