Avoid notice when array is not an array.