Test whether an object contains a nested key path.
Test whether an object contains a nested key path, either own or inherited.