Could you unify this with the below ?

drop the else. have an 
if (slot1) verifyslotexists(1)
if (slot2) verifyslotexists(2)

done.