made loops more efficient to return once answer was found
made loops more efficient to return once answer was found

[#106029472]

mattcui/softlayer-go,TheWeatherCompany/softlayer-go,maximilien/softlayer-go,TheWeatherCompany/softlayer-go,maximilien/softlayer-go,mattcui/softlayer-go