Smarter empty corner detection.