* Added missing error checking on Curl & JSON