fieldExists('field_name', 'table_name')) { // some code... }