added protection for when no points are available
Handle when there are no points in a dataset