Yeah. You could also try the symbol:

Code:
if ($nick($chan,$nick,~)) {  }