If I recall correctly, 'feedbackData.contact' is an optional parameter, so it might not be present.

if (feedbackData.contact) {
  nodemailerAPI.send(...)
}