The point of the _isScanning flag is to keep track of whether we need to turn scanning on after the central manager powers on.  As such, moving this to doStartScan would be an error: we would fail to start the scan after the user hits the button.