how about flipping the return value of this method and renaming it to shouldShowHeader(), and then bringing the stuff inside the body of this foreach into the body of the if, and getting rid of the odd continue statement?