reverse if data != NULL