Actually there is nothing special about this function. I wrote this function to avoid writing EmptyPromise where ever i want to only check for an elements presence in the DOM.