Hello, I am trying to check if a player touched this part and if they did it, then it checks if the player is already inside the table and if not then it adds them to the table
it works but its also giving me a error, I also commented on the line that it errors

how would I fix this?
PlayerChecker.Touched:Connect(function(hit)
local Humanoid = hit.Parent:FindFirstChild("Humanoid")
if table.find(PlayerTable, Humanoid.Parent.Name) then -- THIS LINE ERRORS
else
table.insert(PlayerTable, Humanoid.Parent.Name)
end
end)