You shouldn't need to call `.ToArray()` in the `Keys` property, it should be an enumerable already