Check for existence of element

Use this to check if an element exists – I generally wrap it around a function that only needs to run on certain condition – i.e. if theres a form on the page then run the below code – otherwise you can have conflicts