Add checks for empty summary and empty list.