No no no no no.

This is creating database query in for loop. Just to get single object. No. This is bad.

Anyway, this is not required here, because this widget will not be visible on the page anyway, if you cannot comment on topic. There's more than one (closed status) reason why you could not be able to do this.