this is useless, QStringList::contains is a for loop bounded by size(), so just check contains()