Let's break this down into a few smaller chunks with returns.  e.g. if (blah) { return true; } ...