Option strict on disallows implicit conversations from string to Boolean

Hi @shehenaz_Begum2 and welcome to the Forum
You can use Element exist activity, that would give you a boolean indicating if the element is present or not.