change destroy() to use isEmpty()