Added method that checks if a device is jailbroken.