Added an if statement to verify if the namespace has been found previously.