While we are cleaning up this code you could use a switch block here so we do not have to call `len()` twice.

```go

switch len(arr) {
    case 2:
    case 3:
   default:
}
```