Change name to `isDisposed` and move declaration to the top of the class