In UtilsParsing there is a function ```bool toBool(std::string value);``` which may be more appropriate to parse passive_attacker