Make the check also account for != operator