the if block was incorrect, removed it (came from a 3rd party PR)