allow array to be undefined.