fixed no-interface handling

Switched has set to variable for reliability.