Maybe use a c style for loop and break when found?