make sure an array is given