Instead of checking if(condition){DoSomething()}; check if (!condition){ErrorOut()}; DoSomething();. This allows to decrease the indentation of the potentially large codeblock DoSomething().
Instead of checking if(condition){DoSomething()}; check if (!condition){ErrorOut()}; DoSomething();. This allows to decrease the indentation of the potentially large codeblock DoSomething().