Optimize check for enable