LPS-51660 Check if the selector found an element