Is there a different way to do this other than nesting?

It would still result in me doing branch after branch checking. if one is true or false and if its false then check the next one