public static function testEmpty($array)
{
foreach ($array as $key => $value) {
if (is_array($value)) {
if (!self::testEmpty($value)) {
return FALSE;
}
} else {
if ($value) {
return FALSE;
}
if (in_array($value, [0, '0', FALSE], TRUE)) {
return FALSE;
}
}
}
return TRUE;
}