Table exists function

Please help with a PDO version.