Recommend using the angular version of this function `angular.isUndefined` or the standard `=== undefined`.