Changes boolean to bool.
Removes non-required 'if open_tree_service is None'.