Check the size of the elements array