isset for vars which are not always present. Closes #3494