@if ($groupedBooks(); as groupedBooks) { @if (groupedBooks.length && !$sorting()) { } @else if ($loadingCollection() || $sorting()) {