Modified IsEnabledFor to use hashcode so it works on any object.