I think this will throw if `path` is undefined.