@if (posts.length) { @for (post of posts; track post.postId) { } } @else { }