fortifies conditional against empty lists