Clarifying the last if statement