Check limit and array length.