Linux - check if directory exists

[ -d /var/www/my_dir ] && echo "Dir exists" || echo "Dir does not exists"