public static function checkFileContainsStr($filename, $needle)
    {
        if (file_exists($filename)) {
            $content = file_get_contents($filename);

            if (strstr($content, $needle)) {
                return true;
            }
        }

        return false;
    }