public function getItem(string $key)
    {
        $this->checkCallback();
        if (isset($this->members[$key])) {
            return $this->members[$key];
        } else {
            throw new CollectionException('Unable to retrieve item from collection - key ' . $key . ' not found.');
        }
    }