protected function isReadyArrToFormatInJson(array $arr)
{
if ($this->isAssociativeArr($arr)) {
return true;
}
if (count($arr) > 0) {
$error = "The 'extra' value must to be an associative array";
throw new InvalidArgumentException($error);
}
return false;
}