Simplify isEmpty