fix : add isset to prevent assign non existing index.