Thread:Semantic-mediawiki.org:Community portal/Not returning properties and/or categories in custom namespaces/reply (9)

Check, whether by the time you set    is defined. This implies that  has already been invoked.

You can call  to check the value of the constant.

You can also use  parser function to check the number of any namespace in the wiki.