If you evaluate dataBaseManager.getSQLParameters(foundset) and args, they look identical, like they are arrays. I can see from the docs that dataBaseManager.getSQLParameters(foundset) returns an object.
An array-variable is a pointer to an array-object. Comparing two of those vars will only return true if they point to the exact same object, so when they point to two completely different objects that just happen to have the same values, the result will be false.
If you want to compare the values of two array objects you should either loop through them or compare the join’s as you mentioned above.