make sure $viewValue exists