Can you explain why we need this if-statement?