Avoid unnecessary code and change the type of accelerator_enabled

accelerator_enabled will always be true when accelerator_get_status
returns an array. Also the accelerator_enabled should be a boolean
and not a long