Can't figure out how to make ship spawn if nothing is detected in the spawn area

So I am working on this game where you can spawn ships on it, but have no clue how to make it to where it detects if there is a ship already in that spot, so I tried writing this code but it doesn’t seem to be working can someone help?

script.Parent.MouseButton1Click:Connect(function()
	
	local plr = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent
	local money = plr.leaderstats.Gold
	
	if money.Value >= 500 then
		
		if game.Workspace.ActiveShips.MainShipSpawn.Touched then
			game.Workspace.ActiveShips.MainShipSpawn.Touched:Connect(function(hit)
				if hit.Parent:FindFirstChild("MainPart") then
					
					-- Do NOT spawn Ship
					
				else
					
					money.Value = money.Value - 500
					game.ReplicatedStorage.Ships.Raft:Clone().Parent = game.Workspace.ActiveShips
					game.Workspace.ActiveShips:FindFirstChild("Raft").Name = plr.Name
					
				end
			end)
		end
	end
	
end)

Maybe one of these could help -

https://www.google.com/url?sa=t&source=web&rct=j&url=https://devforum.roblox.com/t/how-do-i-check-if-a-position-is-withinfits-inside-a-blockregion3/582652&ved=2ahUKEwiF7IL_7Mb3AhVmgf0HHYjLC9sQFnoECA0QAQ&usg=AOvVaw308dBwStietaiGBMY8BPz8

https://www.google.com/url?sa=t&source=web&rct=j&url=https://devforum.roblox.com/t/detecting-if-a-position-is-within-the-pos-of-a-part/1393319&ved=2ahUKEwiF7IL_7Mb3AhVmgf0HHYjLC9sQFnoECCAQAQ&usg=AOvVaw1n9KABNDpslBtptZTA6r80

https://www.google.com/url?sa=t&source=web&rct=j&url=https://devforum.roblox.com/t/how-to-check-if-theres-a-part-at-a-given-position/1543060&ved=2ahUKEwiF7IL_7Mb3AhVmgf0HHYjLC9sQFnoECAsQAQ&usg=AOvVaw0EclHxj2AFJxiYrah2elkq

(These links will lead you to posts that were made on the forum)

you can do this by spawning the ship in a folder, this will allow you to know if there is any object(s) in the folder or not by doing this:

if #Folder > 0 then
--- there is at least 1 object in the folder
else
--- there is nothing in the folder
end

I have a folder in workspace I am attempting to send this to but the problem is, multiple ships are going to be sent to it so I can’t tell if one of them is located somewhere inside that area. That’s the reason I set up an invisible block there that way I can somehow detect if a ship is there, but I don’t know how to detect it.