I don't understand why the `if` statement is necessary on the end of this line. Could you please explain?