ternary operator in PHP

writing if statements like this is tiring, and wastes lines 🙁

if (isset($_GET['some_variable'])
     $some_variable = intval($_GET['some_variable']);
else
     $some_variable = -1;

try this:

$some_variable = (isset($_GET['some_variable'])) ? intval($_GET['some_variable']) : -1;