checks for null pointers, since this is used for unknown namespaces then it may not be properly set up.