do we know that patientData.grouped.smbg will exist to do a .length on?