protected function isRef(&$value, $modify = true)
    {
        $matches = null;
        $result =
            is_string($value) &&
            preg_match($this->refPattern, $value, $matches);
        if ($result && $modify) {
            $value = $matches[1];
        }

        return $result;
    }