helper#check: initial code
lib/api: implement helper#check
lib/helper: small refactor

Now with callError() separated and empty checks separated
lib/api: new check api
test-helper: basic tests