You can try this:
<dtml-try>
<dtml-call "REQUEST.resolve_url(myUrl)">
Object was found. Do something here
<dtml-except>
The Object wasn't found. Put your error message here.
</dtml-try>
Regards,
Josef.