Use .size() method to hide the footer.