Avoid using !angular.isUndefined() and !angular.isDefined() in AngularJS application | CAST Appmarq