https://bit.ly/3e3uHAa
How to check whether an element exists with jQuery