def _investment_grouping(stf):
    if hasattr(stf[2], "investment"):
        if stf[2].investment is not None and stf[2].nonconvex is None:
            return True
    return False