public static function testTruthy($a)
{
foreach ($a as $value) {
if (is_array($value) || $value instanceof \Traversable) {
if (self::testTruthy($value)) {
return TRUE;
}
} else {
if ($value !== '' && $value !== NULL) {
return TRUE;
}
}
}
return FALSE;
}