minor style for for len usage and one "== None" occurrence