public static function is_array_multidim($array) { if (!is_array($array)) { return false; } return (bool) count(array_filter($array, 'is_array')); }