Instead of nesting all of this a level deeper, could you check for null and return from the method?