for (int i = suffixes.length - 1; i >= 0; i--) {
String suffixToRemove = suffixes[i];
if (suffixToRemove != null) {
currentImageID = currentImageID.substring(0, currentImageID.length()
- suffixToRemove.length());
if (imageLoader.imageExists(currentImageID)) {
imageExists = true;
break;
}
}
}