             {
             }
 
-            if(!(index <= 0) && !(index > 0))
+            if(index != index)
             {
                 return false;
             }

            {
            }

            if(!(index <= 0) && !(index > 0))
            {
                throw new Error("Incorrect index: " + String(name));
            }

            {
            }

            if(index != index)
            {
                throw new Error("Incorrect index: " + String(name));
            }
