Check array type in setRecords()