refactor .empty()