Check in JS

// let nestedProp = obj.first && obj.first.second;
let nestedProp =obj.first?.second;
Brave Buzzard