You can change these two lines to:
```ruby
tasks = get_tasks @task_list
if tasks
```