Put error checking into the API calls, so you don't need to do it in your own scripts