Better written using `compact`