Drush command to check if Drupal is installed?
$ cd /path/to/drupal6or7or8
$ drush status bootstrap | grep -q Successful


Then, $? will be 0 if Drupal has been installed, or 1 if there is no site, or it does not have a database, or the site has not been installed.