         let fullWidthCvItemSize = CGSize(width: view.frame.size.width, height: 108)
 
         if collectionView == homeCollectionView {
-            if isLastSection(section: indexPath.section) {
+            if isLastSection(indexPath.section) {
                 return gridItemSize
             } else {
                 return fullWidthCvItemSize

            case .continueListening:
                return continueListeningItemSize
            }
        } else {
            return CGSize.zero
        }
    }

    func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -> UIEdgeInsets {

        let homeCollectionViewSectionInset = UIEdgeInsets(top: 0, left: 22, bottom: 0, right: 22)
        let subCollectionViewSectionInset = UIEdgeInsets(top: 0, left: 22, bottom: 0, right: 22)

        if collectionView == homeCollectionView, isLastSection(section: section) {
            return homeCollectionViewSectionInset
        } else if HomeSubsection.homeSubsection(for: .tag, value: collectionView.tag) != nil {
            return subCollectionViewSectionInset
        } else {
            return UIEdgeInsets.zero
        }
    }
}



class HomeViewController: UIViewController {

    /// Returns if the given indexPath section is that of the last section in the homeCollectionView (i.e. subscriptions)
    ///
    /// - Parameter section: indexPath section to determine for
    /// - Returns: if the given indexPath section is that of the last section in the homeCollectionView
    func isLastSection(_ section: Int) -> Bool {
        return section == HomeSubsection.allCases.count
    }

