Return an empty array when fetching an empty list of ids.