PHP function to know if a given URL exists