Check if index is a number