How to handle if xpath is not available in Codeceptjs?

Hi Team,

I am handling popups but if popup not available breaking script .

please suggest me how to handle script without breaking code if popup not available in codeceptjs.

Regards,
Ramesh.