One sanity checkArg you might be able to throw in is to make sure all the mask keys match something from the aggregations