No need for the ```len()```, ```if ext``` is preferred (PEP8).