Mend bug; original implementation had this check

Merge or do it yourself, I don't mind