It works for relations but not for plain attributes that are `null`, while the compiler's `is defined` does return `false` for those.