Handled empty data case.