Since you already set a default value 'dns' in the target option you don't need to check for it.