Fixed: check undefined variables are array.