if (exists(select * from RDB$Relations where RDB$Relation_Name = "<your table
name goes here>')) then...