add helper method to judge that namespace or not