small bug fix, when there is no data returned, check for this