src/Webtrees/Functions/Functions.php
public static function doesTableExist($table) {
		try {
			fw\Database::prepare("SELECT 1 FROM {$table}")->fetchOne();
			return true;
		} catch (\PDOException $ex) {
			return false;
		}
	}
public static function doesTableExist($table) {
		try {
			fw\Database::prepare("SELECT 1 FROM {$table}")->fetchOne();
			return true;
		} catch (\PDOException $ex) {
			return false;
		}
	}
public static function doesTableExist ( $ table ) { try { fw \ Database :: prepare ( "SELECT 1 FROM {$table}" ) -> fetchOne ( ) ; return true ; } catch ( \ PDOException $ ex ) { return false ; } }
Checks if a table exist in the DB schema

@param string $table Name of the table to look for
@return boolean Does the table exist
Checks if a table exist in the DB schema