check args value before access