Rather then trying to do it that way, consider this.
Set a variable such as %paused when using the /splay pause command. Then just have your alias just return $true if the variable exists.
Example:
alias pause.mp3 {
if ($paused == $false) { set %pause 1 | splay pause }
else { unset %pause | splay resume }
}
alias paused {
return $iif(%pause == 1,$true,$false)
}
It's what I've been using for years and has never failed.