You should use != operator instead of !( ... == ...)