fix false error return

added check so execute no longer throws false errors
Merge pull request #13 from konnorrigby/master

fix false error return