How can I check --if exists a property-- in a loaded script

I am using a script SetParamaters to make changes to strings stored in properties as parameters of a second script DoWork. I would like to have SetParameters check to see if certain properties exist in the DoWork script so that it will know what parameters there are to update.

I have tried several things like:
if exists property myParameter of DoWork
or
tell DoWork
exists myParameter
end

None of these seems to work, even though I have no trouble reading or setting the value of a property in the DoWork script from the setParameters script.

You can use this or a similar tecnique:

try
     propertyName of loadedScript
     --> exists, go ahead!
on error --> does not exist
     --> do whatever
end try