check
check($needChecked = true); - check through the DOM model element (available from 6.0.37)
The function accepts parameters as input:
$needChecked – check or remove the check from the element (bool).
After testing, the function returns the result of its work to the script (the return value type is boolean):
true – completed successfullyfalse – it was not possible to find such an element (for example, there are no elements that meet the specified criteria or there is no such frame)