pylint throws a warning on that syntax, which is why I changed it, and I am more used to seeing a default return after the loop's early returns. But it doesn't matter; reverted it.