Of course we should not trigger ellers or have backtraces in production code but PHP will trigger errors if code tries to access an undefined property on an object no matter where it is run. It is the developers' responsibility to ensure that it does not happen.

The code above does that change that.