More readable by using if else