Conditions for Degeneracy of $\varphi $-Branching Processes with Random $\varphi $