Please use the camelCase naming: $queryArray

And I assume as this is special to rescore, the "reformatting" should happen in the toArray function of Rescore and not here. Exceptions should be treated locally.