     /// - parameter animated:   Whether to animate the transition.
     /// - parameter completion: The completion closure.
     /// - Returns: Whether the scroll was executed.
-    @discardableResult public func scrollToPage(_ page: Page,
+    @discardableResult
+    public func scrollToPage(_ page: Page,
                              animated: Bool,
                              completion: PageScrollCompletion? = nil) -> Bool {
         

        if rawIndex != self.currentIndex {
            
            // guard against invalid page indexing
            guard rawIndex >= 0 && rawIndex < self.viewControllers?.count ?? 0 else { return false }
            guard let viewController = self.viewControllers?[rawIndex] else { return false }
            
            var direction = NavigationDirection.forPage(rawIndex, previousPage: self.currentIndex ?? rawIndex)
            

            return true
            
        } else {
            guard let viewController = viewController(at: rawIndex) else { return false }
            self.autoScroller.didFinishScrollIfEnabled()
            completion?(viewController, animated, false)
            
