Can you change this to:
```ruby
unless @project_template.nil?
  delete_template_files
end
```