add hasArchivedItems model function