refactor empty to isEmpty