Validate chunk data array lengths - thanks to @mikeprimm