This `if` statement is confusing, some comment would really help.