LPS-51660 Check if the selector found an element
LPS-51660 - Source formatting