[ticket/12518] Apply De Morgan to make the conditions easier to read

PHPBB3-12518