Modify function exists to improve consistency of results

Modified exists function removing reference to http protocol in final check, as checking against response code is more dependable