Check if items is an array. Fixed #2.