a check of the name would not be bad either. the caller does not know the full name to check it himself and a library function should offer this service ;-)
local n = "big-data-" .. name
if data.raw["entity-ghost"][n] then error("name already used. '"..n.."'") end