It would be better UX to actualy disable the button, so the user can see that the delete action is not available.