     func numberOfSections(in collectionView: UICollectionView) -> Int {
         if collectionView == homeCollectionView {
             return HomeSubsection.allCases.count + 1 //+1 accounts for the last section for subscriptions
-        } else {
-            return 1 //All of the sub-collection-views have a single section
-        }
+        }
+        return 1 //All of the sub-collection-views have a single section
     }
 
     func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
         if collectionView == homeCollectionView {
-            if isLastSection(section: section) {
+            if isLastSection(section) {
                 return subscriptions.count
-            } else {
-                return 1 //sub-collection-views should have a single item (the corresponding cv-containing cell) inside them
-            }
+            }
+            return 1 //sub-collection-views should have a single item (the corresponding cv-containing cell) inside them
         }
         let type = HomeSubsection.homeSubsection(for: .tag, value: collectionView.tag)!
         switch type {


class HomeViewController: UIViewController {

    /// Returns if the given indexPath section is that of the last section in the homeCollectionView
    ///
    /// - 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
    }


            return header

        default:
            return UICollectionReusableView()
        }

    }
