Do you really need to continue processing all usages if you've already found one? This also means that you should just have a boolean flag instead of an integer value