I think you can just do `tmux new -A`. IIRC this is equivalent to `tmux attach || tmux`.
In practice I have it via bash alias `tma` , not long command as described. Until I can't bring my .bashrc to particular server of course - there long one, may try your suggestion though