Make isEmpty an external dependency.