being less explicit with the error check since the output varies by db and api