Checking if referenced fields are empty in commerce product display node.tpl
you can render the field in advance, and save the html for your accordion.

the html variable will be empty if the field is empty:

$html = render($content['product:field_name']));
if (!empty($html)) {
  // accordion stuff
}