Nested if statements can make your code more complex.
A better solution is to use the logical AND operator: