```python
if isinstance(keys, list):
    single_key = False
else:
    keys = [keys]
    single_key = True
```