Better way to check if the api check was successful, or if we got any errors