use != to compare null to non-existing object attribute