Refactor ticket mark_done

Checks the ticket array for the object and marks as done.