destructure properties of undefined or null as undefined