Why not just move this up around line 265 and drop the whole else block between here and there?