Can you declare it inside the if (line 245) instead? It's only used there.