Use Bitstring.is_zeroes_bitstring from bitstring 2.0.4.
The original code is less efficient and not tail recursive.