Php warning with web monitoring tool

We use a web monitoring tool ( but it generates a lot of warn in our apache log. Nothing too worrying but it make our logs a bit messy

We use OJS

Logs :

[Fri Jul 03 05:39:15.748118 2020] [php7:warn] [pid 17594] [client] PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/ojs/cache/t_compile/65bfc3e024c2e9104f46e23b73376a9455e3df0e^ on line 46, referer:

The referenced line contains :

<?php if (!count($_smarty_tpl->tpl_vars['journals']->value)) {?>

Any idea to clear this ?