support for setItems(..., $useKeys)