The level is the nesting level of the "id" element. The first one (level 0) will have "cursor" as in:

$result['cursor']['id'];

I do agree that this reads confusingly, and will change that.