Checks for the existence of a variable before attempting to display it