This is no problem in PHP with isset(). It’s more a JS thing to check all parent properties.
isset()
I just tested if with my Babel addon (latest version with OPCache invalidation after saving) and it works well on my local machine.
See also: