How to test if an Armor Stand is missing a HandItem
So, I figured it out by myself. The solution was the following
execute as @e[x=-1532.5,y=153.6,z=-279,type=armor_stand,nbt={HandItems:[{id:"minecraft:wooden_shovel"}]}] run say test
Just use "as" instead of "if"