Compare against NSNotFound instead of zero