change existance check logic