If you need to use a raster PNG badge, change the '.svg' to '.png' in the link
Simplify a few length checks. (#353)
`len` is always non-negative, so `len(...) <= 0` is equivalent to `len(...) == 0`.
relevant lines covered
hits per line