[CODE ANALYSIS] - merged collapsible if statement.