It's safe because ids.length won't be > 0 unless there's an encoder.