isEmpty correction