checking array data length on save