protected function is_collection_like($value)
    {
        if ($value instanceof self) {
            return true;

        } else if ($value instanceof \Traversable) {
            return true;

        } else if ($value instanceof Arrayable) {
            return true;

        } else if ($value instanceof Jsonable) {
            return true;

        } else if (is_object($value) || is_array($value)) {
            return true;

        } else {
            return false;
        }
    }
protected function is_collection_like($value)
    {
        if ($value instanceof self) {
            return true;

        } else if ($value instanceof \Traversable) {
            return true;

        } else if ($value instanceof Arrayable) {
            return true;

        } else if ($value instanceof Jsonable) {
            return true;

        } else if (is_object($value) || is_array($value)) {
            return true;

        } else {
            return false;
        }
    }
protected function is_collection_like ( $ value ) { if ( $ value instanceof self ) { return true ; } else if ( $ value instanceof \ Traversable ) { return true ; } else if ( $ value instanceof Arrayable ) { return true ; } else if ( $ value instanceof Jsonable ) { return true ; } else if ( is_object ( $ value ) || is_array ( $ value ) ) { return true ; } else { return false ; } }
Decide if the given value is considered collection-like.

@param mixed $value
@return bool
Decide if the given value is considered collection - like .