Update to use preferred $scope.apply check