Error: tpl->index
Error: exception TypeError, count(): Argument #1 ($value) must be of type Countable|array, bool given.
Error: Line 77.