Don't do this.  You don't want huge sections of code inside a single `if`.  Instead, you want to return early if the case you care about isn't the one you get, then you don't have to indent all this code.