if(exists($entry)) { $double_check_association = 1; } else(!exists($entry)) { $add_new_entry = 1; }