corosync: refactor if conditions