add judge result return.

ok -> return true;
error -> return false;