check of curl returns any data before parsing