Does an executor need to check that beneficiaries are not bankrupt?

I have been told that it is a legal requirement to check this before paying out legacies.

Is that correct?