I think you should use `===` equality. But on a more general note you should probably mimic what `Y.Lang.isValue()` does.