freq_items=$(cat "$path_freq" | sort -nr | sed 's/^\([0-9]*\)\t\([0-9]*\)\t\(.*\)/\3/')

# Checks if given item is within list of frequent items
function is_freq() {
    item="$1"
    while read -r freq_item; do
        if [ "$item" == "$freq_item" ]; then
            return
        fi
    done <<< "$freq_items"
    false