isset-check for variable in view to prevent "php notice"