Simplified isClosed.