Radio Button field ReadOnly

I want to make Radio button field as read-only when Account field is not empty. I have tried using dependency but it didn't work.