std::shared_ptr() defines `operator bool()` to allow checks for nullptrs means you can write `if (_sharedScheduler)`