public function find($object, $query)
    {
        if ($query) {
            $node = $this->walkObjectTree($object, $query);

            if (!is_array($node) && (!$node instanceof \Traversable)) {
                $node = [$node];
            }

            return $node;
        }

        return [$object];
    }