I didn't understand how I can remove one if condition