Allow empty array

Allow for an undefined array.