simlified a statement

I simplified a statement, with the not function