Explanation of initial if statement