Predicate check if this entity is not this entity
E.g. execute as @a at @s positioned ~-5 ~-1 ~-5 if entity @a[dx=9,dy=100,dz=9,predicate=not_this]
This should succeed if there is an entity in the cubic volume that is not the runner of the command
Continue to help post