modified the 'is-enabled' to 'is-disabled' and added an undefined check.