Method to get animation loop size stops when it finises finding the size
instead of looping through the rest of the array before returning.