Small detail, but I think it would be both faster and more readable if you did:

`
var subTome = tome[keys[i]];
if (subTome && !isEmpty(subTome.__diff__)) {
  notify(subTome);
}
`