ok, I would use angular.isDefined