Writing function The suggestions above should help you with your problem, but I believe a simpler way you could have ...
This user does not accept Private Messages