protected function refExist($path, $ref)
    {
        $content = file_get_contents($path);

        if (false === strpos($content, $ref)) {
            return false;
        }

        return true;
    }