remove the page navigation element if it 's found to be empty