Revert "Replace ! with not"

This reverts commit 749e6c47ab59c7ae8ee970ac2ffa4ad368dfc396.
Revert "Revert "Replace ! with not""

This reverts commit 1c2e7fd5b02ada6dfd06d4b2d901d239cd5a3644.