change getNS output check to empty string as well