Fix SetTables param check

In an older version of the library, a check was added to ensure invalid tables weren't searched - the count was 2.  This is an artifact of the old library, and now we can check against the $valid array instead to achieve a similar result.