Should `owner` be `@owner`?  Other references in that file are preceded by '@'.

If you want to be sure the owner wasn't already deleted, is `if @owner.persisted?` better?