Actually, the condition can be moved to line 442 and the var dropped entirely