Added "table_exists" function

Returns a bool value.