Using empty() to clear listoflists.