improved existance test