[Entity] Check for plcace on entity spawn

I working on workshop addon that will add gift system on dakrp server.
But i have some trouble with spawn gifts, how to make check if it spawn chose next position?

[LUA]
gifts = {“gift1”, “gift2”, “gift3”}
positions = {Vector(0,0,0), Vector(100, 100, 0), Vector(500, 500, 0)}

function Spawn_Gifts()
for key, ent in pairs(gifts) do
timer.Create(“spawnTimer”…ent:EntIndex(), 2*60, 0, function()
local gift = ents.Create(ent)
gift:SetPos(positions[key])
gift:Spawn()
end)
end
end
hook.Add(“InitPostEntity”, “Spawn_Gifts”, Spawn_Gifts)
[/LUA]