Testing for non-empty lists.