If statement

Hi i am trying to get the button (text link btns) to only show subpage if there is one. but no luck i dont get any buttons to show. help


<?
            $subpage = "";
            if ($subpage == ""){
                echo "<a href='copy.php?page=<?=$page?>'><?=$title?></a><br><br>";
            }else{
                echo "<a href='copy.php?page=<?=$page?>&subpage=<?=$subpage?>'><?=$title?></a><br><br>";
            }
            ?>