Check if index is a number, check range before calling plugins