Reverse the conditional at the start so we aren't stuffing all the logic in an 'if' block
mentioned in commit 4dc06610