fixed empty/nonemptying toggle logic errors on changing adapter that caused header to get messed up sometimes
just directly compare which headers are visible rather than trying to maintain wasEmpty state
removed logging