Refactor empty section logic for multi-section table views