Use not in operator instead of negating in operator

Signed-off-by: Michal Čihař <michal@cihar.com>