breaking buildInstagramItemsFromApiResponse for loop if counter is larger than the instagrams array size