feat(hasNameSpace): improve nameSpace validation, closes #26 and #27