"/execute unless data block" never runs the command when the block doesn't have the NBT element
Running
/execute if data block ~ ~ ~ Items run say ChestHere
will correctly print ChestHere when standing on a chest. (And not, when you're not doing so.)
However
/execute unless data block ~ ~ ~ Items run say NoChestHere
will not say NoChestHere when not standing on a chest.