Explanation of If statement