The variable not evaluated correctly.
It should be like this:
Code:
set %new. [ $+ # [ $+ [ $nick ] ] ] 1

if (%new. [ $+ # [ $+ [ $nick ] ] ] != $null) {
  msg $chan Exists
} 
else {
  msg $chan Does not exist
}