fixed notice when checking namespaces array