if array has no elements then the error description is misleading