allow empty array for setItem