Why did you add that if condition here if the same one comes right after it again?