make sure unpacked data is an array