check if element['id'] is set