Execution of sql model only when condition satisfies.

Hi Team,
I am pretty new to dbt and trying to learn so, solution will be appreciated.
I have a sql model that needs to be executed only if the condition satisfies.
For example the sql model is insert statement into snowflake table and the insert should run only when the condition satisfies like (if the snowflake target table is not having data for specific date then run the insert statement)