check httparty resuls before usage

fixes #2