InMemoryRecordManager ignores empty group_ids due to truthiness check, leading to validation bypass and incorrect filtering
InMemoryRecordManager treats an explicitly provided empty list for group_ids as if it were None because of truthiness checks. This causes update() to skip length validation and store records with group_id=None, and list_keys() to return all keys instead of an empty result when group_ids=[] is passed. The async methods have the same issue.
