Fixed flashlight availability check