@jagtalon Since there's an `else` below, would `var type;` work just as well here?