or as a 1 liner:

    return x[1] != null &&
        !(x[0] == 'alternate' && x[1].type == 'IfStatement') &&
        x[1].type != 'BlockStatement'