add check exists functions