Revert "fix missing check inversion"

This reverts commit 652656feb3d3897f9b298567f57bdba6646f5e14 as it is neither complete nor correct.