Ensure from_ids always returns a list