is_exist_by_xpath
is_exist_by_xpath($xpath); - this function is used to check the presence of an element on the page, finding it by the specified xpath. (Available from version 6.0.47)
The input function accepts parameters:
$xpath – the xpath of the element in the DOM model.
After the function returns the result of their work in the script (the return value type is boolean):
true – executed successfullyfalse to find this element failed (e.g. no items that meet the specified criteria or not this frame)