check if pie data is empty before drawing