Help With command

execute as @e[type=arrow, distance=0..1] if items entity @s contents arrow[item_model="minecraft:ancient_arrow"] run kill @s I want this command to - kill the arrow (It's self) when the arrow is 1 block away from a entity
Continue to help post