if(textureUnit >= 0 && textureUnit < idCache.length) {
if (textureUnit < idCache.length && textureUnit >= 0) {
    public final int getTextureID(int textureUnit) {        if(textureUnit >= 0 && textureUnit < idCache.length) {            return idCache[textureUnit];        }                     return 0;            }