don't append item if summary is empty, remove unused import