Revert "replace if not condition with unless condition"

This reverts commit 59705b586b88fcffc994af9c47c990bfe00c35cf.
replace if not condition with unless condition