I suppose you can check if $roundid is false or not, than creating the $all variable