redundant control flow and unnecessarily complicated, either use:

    return !(flags & FUNCFLAGnogcInprocess) && isNogc();

or at least remove the `else`