If an object does not have a property and I am accessing the property, we get a MissingPropertyException. Can I do something similar to safe null (?.
MissingPropertyException
?.
You can also use try/catch
try { env.GERRIT_TOPIC=GERRIT_TOPIC } catch (e_val) { echo 'missing GERRIT_TOPIC' }