restore the native array indexOf function after testing its undefined state