Should be `if (!$config->getOption('ignore_extra_data') && count($form->getExtraData()) > 0) {`