Check incoming request variables are set before using them