Me too. Looking at them, they all start with something like
test $# -eq 2 || return
Speaking of primitiveness, in strict POSIX sh, there's no such thing as local variables in functions!!