update the fix of checking on empty array value

remove the empty function from the control structure

fix the build fail: #40