you can directly do 

return $config['enabled'];