Update lib/rype/api.rb

add callback for checking