Make conditional based on if vars are defined.