public static function checkForTable($table, $dbConn = NULL)
    {
		if (is_null($dbConn)) {
			$dbConn = self::makeDbConn();
		}

        try {
            $result = $dbConn->query('SELECT 1 FROM ' . $table . ' LIMIT 1');
        } catch (\PDOException $e) {
            return false;
        } finally {
            $dbConn = null;
        }

        return $result ? true : false;
    }
public static function checkForTable($table, $dbConn = NULL)
    {
		if (is_null($dbConn)) {
			$dbConn = self::makeDbConn();
		}

        try {
            $result = $dbConn->query('SELECT 1 FROM ' . $table . ' LIMIT 1');
        } catch (\PDOException $e) {
            return false;
        } finally {
            $dbConn = null;
        }

        return $result ? true : false;
    }
public static function checkForTable ( $ table , $ dbConn = NULL ) { if ( is_null ( $ dbConn ) ) { $ dbConn = self :: makeDbConn ( ) ; } try { $ result = $ dbConn -> query ( 'SELECT 1 FROM ' . $ table . ' LIMIT 1' ) ; } catch ( \ PDOException $ e ) { return false ; } finally { $ dbConn = null ; } return $ result ? true : false ; }
Check for the existence of a table in the database being used

@param string $table Name of table to be searched in the database
@param DbConn $dbConn Database connection object
@return bool
Check for the existence of a table in the database being used