これだと Notice Error undefined index
function t1($s) {
return isset($s);
}


function t2(&$s) {
return isset($s);
}

こっちは動作します
この書き方はあってますか?