check httparty resuls before usage
Merge pull request #4 from theist/issue_1

check httparty resuls before usage