check_namespace function

Checks if namespace is available