use grep -q instead of output to /dev/null
change variable name