Safely access nested properties in an object
The object to traverse
Array of keys representing the path to the desired property
The value at the path, or undefined if not found
Safely access nested properties in an object