fix `while` bug. EMPTY array is not false, OMG.