Within this block, you're assuming that `schema[key+sep+subKey]` is an object, so you have to actually test for that and not just that it's defined.

`if (isBasicObject(schema[key+sep+subKey])) {`