Claims are hard to draft and your approach might not be artful but alternatives are allowed in EPO claims if they don't get too confusing.
A claim, whether independent or dependent, may refer to alternatives,
provided that the number and presentation of alternatives in a single
claim does not make the claim obscure or difficult to construe and
provided that ...