protected static function compare($needle, array $haystack)
    {
        foreach($haystack as $row) {
            if(fnmatch($row, $needle)) {
                return true;
            }
        }
        return false;
    }