Check out example codes for "t-sql test if table exists". It will help you in understanding the concepts better.

Code Example 1

IF (EXISTS (SELECT * 
                 FROM INFORMATION_SCHEMA.TABLES 
                 WHERE TABLE_SCHEMA = 'TheSchema' 
                 AND  TABLE_NAME = 'TheTable'))
BEGIN
    --Do Stuff
END

Learn ReactJs, React Native from akashmittal.com