My solution was to enclose it with if check. obj!.fld is better but didn't work.
`if (obj.fld) { somefunc(obj.fld); }`