extract this into a method? (has_content_tab?) and reuse!