Check if the collection view has any sections before attempting to scroll