Check the result of fetch_url() before assuming you can access its value