https://thewallacehouseblog.blogspot.com/2023/08/jquery-if-object-is-present.html
Jquery If Object Is Present