while (value) { var foo = void 0; if (bar) { foo = []; } if (foo) { doIt(); } }