Fix issue in check function

- Fix Rest::check() to use client check function.