better fix requires no empty array #3307