fix #661 simplify array subscript access nil check