public static function is_traversable($data) { return is_array($data) || $data instanceof \Traversable && $data instanceof \Countable; }