Add exist() assertion

same issue as #22, but added some tests and updated README.