Merged collapsible if statements