Small logic simplification
Small logic simplification

aequitas/isort,PyCQA/isort,leepa/isort,PyCQA/isort,adamchainz/isort,graingert/isort,pahko/isort,pahko/isort,levic/isort,wimglenn/isort,jamesbroadhead/isort,tomviner/isort,adamchainz/isort,tomviner/isort,aequitas/isort,gforcada/isort,wimglenn/isort,jamesbroadhead/isort,graingert/isort,levic/isort,AbsoluteMSTR/isort,jmullan/isort,gforcada/isort,leepa/isort,AbsoluteMSTR/isort,jmullan/isort