Minor syntax change for isEnabled() adapter check