HOPKINS: Refactor searchCat to remove the use of g_PTRNUL, add a parameter to clarify the result of the function