out of bound check for getField()