private function isCountable($value): bool
    {
        return is_string($value) || is_array($value) || $value instanceof \Countable || $value instanceof \Traversable;
    }
private function isCountable($value): bool
    {
        return is_string($value) || is_array($value) || $value instanceof \Countable || $value instanceof \Traversable;
    }
private function isCountable ( $ value ) : bool { return is_string ( $ value ) || is_array ( $ value ) || $ value instanceof \ Countable || $ value instanceof \ Traversable ; }
checks if given value is countable

@param   mixed  $value
@return  bool
checks if given value is countable