This would be the better solution, indeed. You'll likely need to query the core [[https://www.mediawiki.org/wiki/Manual:logging_table|logging table]] to get the name of the user who deleted a comment, though.
I was thinking of just clearing comment text without printing the user's (owner) name similar to the sample provided by @SamanthaNguyen. Is it a good idea?