checkLocationExists () {
pathWithShieldingSlash=$(echo "$1" | sed 's/\//\\\//g')
isPathExists=$(sed -n 's/.*\(location '"$pathWithShieldingSlash"'.*\).*{/\1/p' "$locations_path/$file_name")
echo "isPathExist=[$isPathExists], string is empty or not: $([[ -z "$isPathExists" ]] && echo true || echo false)"
[[ -z "$isPathExists" ]]
}