This is likely a bug. If an object, variable or attribute is guaranteed to be empty then it does not make a lot of sense to compare against it. Use an explicit empty instead.
Noncompliant example:
if $Object = empty and $Object/Attribute = $Var
then 'A'
else 'B'
Compliant example:
if $Object = empty or $Object/Attribute = $Var
then 'A'
else 'B'