Determine visible sections of a UITableView when sections have no rows

I am attempting to determine which sections are currently visible in my UITableView. However, sometimes my sections do not have rows and only display their section header. Is there a way to determine, maybe by using the section headers, which sections in my UITableView is currently being displayed? Asking for -(NSArray *)indexPathsForVisibleRows does not work to determine the section, because there are no actual rows that are visible, just the section headers.