Adding a check for no footer rows.