do not print attribute section if empty