Actually 4 (if we count braces, 2 without) but more importantly a single conditional and 2 loops versus N conditionals and 1 loop.

Compare the removed code in GUIBaseContainer with this.