Instead of using `len` you could just say `if not config['path']'