added check to ensure the phone has a flashlight