added isset() to notifications