I often run into code that has to perform lots of checks and ends up being indented at least five or six levels before really doing anything. I am wondering what alternativ
See Flattening Arrow Code for help.
Replace conditions with guard clauses. Decompose conditional blocks into seperate functions. Convert negative checks into positive checks.