couch check state helper function