Yes, though since the declaration is in a nested scope (if), and the array must outlast that scope, I believe doing so is invalid / undefined.