elementExists fixed