In JavaScript I have a habit of using the following fallback evaluation
var width = parseInt(e.style.width) || e.offsetWidth() || 480
mean
its better to be
$a = isset($_GET['id']) ? $_GET['id'] : 1;