Documentation
e.g. {{User:Qwerfjkl/sandbox/hasRcat|id=R to project namespace}}
on Wikijargon gives yes; it would give nothing if not present. The id is produced by {{Redirect template}}, which is called by rcat templates. See User:Qwerfjkl/sandbox/hasRcat/testcase.