add isExists  method, see #17