Again, use before assert. There is probably no point in having the `assert` calls in these static internal functions. Not that I never do it, but generally asserts are more helpful in public interfaces where a programmer who is using the library might accidentally make an error in public API usage.