nit: use "grep -q" instead of redirecting the output