adding isset for notices