Make the bool a class member instead.