Added if(isset()) to the variables in the views before they are echoed.