then why don't you use what qwerty showed? if $0 is non-0 then parameters have been passed.
but if you also want to check against things like $youridentifier(,,) where $0 is 3 but each $N is null you could check
if ($len($1-) >= $0) && ($0) {
which forces there to be at least one non-$null parameter