Combine nested `if`s with `&&`