In javascript, `undefined`, `null`, and negative numbers are "falsey" - which is to say they are evaluated as false in a boolean context.
In an object (i.e. Memory), a non-existing property is undefined.
So, a simple boolean test should do it
if (!Memory.path) { // do stuff}console.log(`Path: ${Memory.Path}`); // should succeed
(edits because I'm bad at formatting)