src/Pool.php
public function isInPool($type, $id)
    {
        $this->requireRegisteredType($type);

        $id = (int) $id;

        if ($id < 1) {
            throw new InvalidArgumentException('ID is expected to be a number larger than 0');
        }

        return isset($this->objects_pool[$type][$id]);
    }
public function isInPool($type, $id)
    {
        $this->requireRegisteredType($type);

        $id = (int) $id;

        if ($id < 1) {
            throw new InvalidArgumentException('ID is expected to be a number larger than 0');
        }

        return isset($this->objects_pool[$type][$id]);
    }
Check if object #ID of $type is in the pool.

@param  string $type
@param  int    $id
@return bool