fix a bug check vector.empty()
Merge pull request #207 from irvs/issue200

fix a bug check vector.empty()