check that elements were actually found