for (var i = 0; i < hist.done.length; i++) { if (!hist.done[i].ranges) { ++done } }