@JakubMisek This is the test case in order to reproduce:
<?php
declare(strict_types=1);
namespace Devsense\Common;
$store = new \stdClass();
if(isset($store->data) && is_array($store->data)) {
$data = [ implode(', ', $store->data) ];
$store->data = reset($data);
}
$storeA = new \stdClass();
$storeA->test = false;
$storeB = new \stdClass();
$storeB->test = [];
$storeB->test[] = 'toto';

Thank you