added isset to all condtional