fix: check ptr existance