API handled empty data