This should take in an argument `open` and check if arguments are 0:
```
if (arguments.length) {
  return $scope.isOpen = !!open;
} else {
 return $scope.isOpen = !$scope.isOpen;
}
```

This way it can handle an argument that sets the open explicitly and it also returns the actual value after the toggle.