Returns true if the key path is defined in the provided collection.
A functional alternative to collection.hasIn(keypath) which will also work with plain Objects and Arrays.
collection.hasIn(keypath)
hasIn(collection, keyPath): boolean;