sizeof cannot be used to test existance. Fixes: Got error 'PHP message: PHP Warning: sizeof(): Parameter must be an array or an object that implements Countable in /.../include/items.php on line 66\n': 1 Time(s) PHP 7.2.5 / Ubuntu 17.04 LTS