How To Check If A Widget Exists

How to check if a widget exists in application?

Now, I want to use CPradoViewRenderer to render view. If a non-existing widget tag is inserted in view, Error happens. I want to validate the view file before its generation.

Thanks