Add a short-circuit and problem
Used the short circuit and to group if statements