Do we need to check the length of the array?