So many nested conditional statements are difficult to think about. In the future you should look to refactor code like this to be flatter.