It's better to match for `shallows <> []` to avoid the full List.length operation.