found an awesomely elegant implementation for ok()