How to find entities not being ridden

Solution 1:

Target selectors do not support looking for NBT data. You must mark the entity with a label first and then target the entity using that label:

/scoreboard players tag @e[type=ArmorStand,tag=!NoRiders] add NoRiders {Passengers:[]}
/kill @e[type=ArmorStand,tag=NoRiders]