code: public boolean isAdAvailable(int position, int fetchedAdsCount) {
          if(fetchedAdsCount == 0) return false;
          int adIndex = getAdIndex(position);
          int firstAdPos = getOffsetValue();
  
          return position >= firstAdPos && adIndex >= 0 && adIndex < getLimitOfAds() && adIndex < fetchedAdsCount;
      }
docs: Checks if an ad is available for this position.
  
  @param position the adapter position
  @param fetchedAdsCount the count of completely fetched ads that are ready to be published
  @return {@code true} if an ad is available, {@code false} otherwise