So, this is my first post 

How to check is anything passed to $_GET or $_POST variables?

Easily:

if (!isset($_GET['download'])) {

Example:

<?php
if (!isset($_GET['download'])) {
echo ('Error download is not assigned');
} else {
echo ($_GET['download']);
}
?>

Taken from here.